@Override
    public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException {
        this.trash(files, prompt, callback);
        for(Path f : files.keySet()) {
            fileid.cache(f, null);
        }
    }
@Test
    public void testDeleteMultipleFiles() throws Exception {
        final EueResourceIdProvider fileid = new EueResourceIdProvider(session);
        final Path folder = new Path(new AlphanumericRandomStringService().random(), EnumSet.of(AbstractPath.Type.directory));
        final Path file1 = new Path(folder, new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file));
        final Path file2 = new Path(folder, new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file));
        new EueDirectoryFeature(session, fileid).mkdir(folder, new TransferStatus());
        createFile(fileid, file1, RandomUtils.nextBytes(511));
        createFile(fileid, file2, RandomUtils.nextBytes(214));
        assertTrue(new EueFindFeature(session, fileid).find(file1));
        assertTrue(new EueFindFeature(session, fileid).find(file2));
        new EueTrashFeature(session, fileid).delete(Arrays.asList(file1, file2), new DisabledLoginCallback(), new Delete.DisabledCallback());
        assertFalse((new EueFindFeature(session, fileid).find(file1, new DisabledListProgressListener())));
        assertFalse((new EueFindFeature(session, fileid).find(file2, new DisabledListProgressListener())));
        assertTrue(new EueFindFeature(session, fileid).find(folder, new DisabledListProgressListener()));
        new EueTrashFeature(session, fileid).delete(Collections.singletonList(folder), new DisabledLoginCallback(), new Delete.DisabledCallback());
        assertFalse((new EueFindFeature(session, fileid).find(folder, new DisabledListProgressListener())));
    }