@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 testDeleteFileInTrash() throws Exception {
        final EueResourceIdProvider fileid = new EueResourceIdProvider(session);
        final Path file = new EueTouchFeature(session, fileid).touch(new Path(new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file)), new TransferStatus());
        final String resourceId = file.attributes().getFileId();
        final EueTrashFeature feature = new EueTrashFeature(session, fileid);
        feature.delete(Collections.singletonList(file), new DisabledLoginCallback(), new Delete.DisabledCallback());
        final Path trash = new Path("Gelöschte Dateien", EnumSet.of(directory, placeholder));
        trash.withAttributes(new EueAttributesFinderFeature(session, fileid).find(trash));
        assertFalse(feature.isSupported(trash));
        final Path trashed = new Path(trash, file.getName(), EnumSet.of(Path.Type.file));
        assertTrue(new EueFindFeature(session, fileid).find(trashed));
        new EueTrashFeature(session, fileid).delete(Collections.singletonList(trashed), new DisabledLoginCallback(), new Delete.DisabledCallback());
        assertFalse(new EueFindFeature(session, fileid).find(trashed));
    }