cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting node

aleksander
Champ in-the-making
Champ in-the-making
Could anyone help with deleting content from alfresco? I have tryed org.alfresco.service.cmr.repository.NodeService.deleteNode(NodeRef) and nothing happened.
2 REPLIES 2

dranakan
Champ on-the-rise
Champ on-the-rise
Hello,

This should work :

nodeService.deleteNode(NodeRef);

Are you sure that a commit has been made ? Do you have check your log ?
Please give your code if still have problem.

Good luck Smiley Wink

aleksander
Champ in-the-making
Champ in-the-making
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.