How to remove a node using Alfresco Javascript API?
Here are the steps to follow.
1) Find the node using search service
2) If the node is found then it return scriptnode.
3) Use the scriptnode instance and call remove method.
var nodeToDelete= search.findNode("workspace://SpacesStore/d2403801-a467-4825-a0e0-c9f6c20bf934");
nodeToDelete.remove();
No comments:
Post a Comment