Could anyone help with deleting content from alfresco? I have tryed org.alfresco.service.cmr.repository.NodeService.deleteNode(NodeRef) and nothing happened.
Thanks for reply. I have tried: - nodeService.deleteNode(node); - serviceRegistry.getFileFolderService().delete(node); and nothing happens in alfresco web GUI, but when I do searchSimple(node) after deletion I getting null node. Also, when I trying delete node with both methods, from ContentServicePolicies.OnContentReadPolicy.onContentRead(arg0) method, deletion is successful.