//ResourceRecordVO resourceVo = this.getTrashedResourceDAO().getTrashedResource(resourceId);
//if (null != resourceVo) {
//ResourceInterface resource = this.createResource(resourceVo);
String folder = this.getSubfolder(resource);
if (resource.isMultiInstance()) {
AbstractMultiInstanceResource multiResource = (AbstractMultiInstanceResource) resource;
Map<String, ResourceInstance> instancesMap = multiResource.getInstances();
Iterator<ResourceInstance> iter = instancesMap.values().iterator();
while (iter.hasNext()) {
ResourceInstance resourceInstance = iter.next();
String path = folder + resourceInstance.getFileName();
this.getStorageManager().deleteFile(path, true);