// check if it is the root folder
if (objectId.equals(objectStore.getRootFolder().getId())) {
throw new CmisNotSupportedException("You can't delete a root folder");
}
objectStore.deleteObject(objectId, allVersions, context.getUsername());
LOG.debug("stop deleteObject()");
}
public FailedToDeleteData deleteTree(CallContext context, String repositoryId, String folderId,
Boolean allVersions, UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension) {