VFSItem item = currentContainer.resolve(file);
if (item != null && (item.canDelete() == VFSConstants.YES)) {
if (item instanceof OlatRelPathImpl) {
// delete all meta info
MetaInfo meta = MetaInfoFactory.createMetaInfoFor((OlatRelPathImpl)item);
if (meta != null) meta.deleteAll();
}
// delete the item itself
item.delete();
} else {
getWindowControl().setWarning(translator.translate("del.partial"));