if (fullCoverage && !recursive) {
// todo: allow smarter removal
throw new RepositoryException("Unable to remove content since aggregation has children and recursive is not set.");
}
ImportInfo info = new ImportInfoImpl();
info.onDeleted(node.getPath());
Node parent = node.getParent();
if (getAclManagement().isACLNode(node)) {
getAclManagement().clearACL(parent);
} else {
node.remove();