//--- remove the metadata directory
File pb = new File(Lib.resource.getMetadataDir(context, id));
FileCopyMgr.removeDirectoryOrFile(pb);
//--- delete metadata and return status
dataMan.deleteMetadata(context, id);
if(context.isDebugEnabled())
context.debug(" Metadata with id " + id + " deleted.");
metadata.add(Integer.valueOf(id));
}
} else