title: Java Script to delete node in alfresco not working
body: <pre><code>var nodeRef = "workspace://SpacesStore/2112480f-f0e8-461b-9564-78e7225f177c";
  
  try {
  
  var currNode = companyhome.findNode(nodeRef);
  getNodeList(currNode);
  removeNode(currNode);
  }
  
  catch(err) {
  logger.log("Exception: " + err.message );
  }
  
  
  function removeNode(node) { 
  node.remove();
  logger.log(node.displayPath + "/" + node.name + " is deleted");
  return true;
  
                      }
  </code></pre>
  
  <p>The problem is the node does not get deleted and the logger.log does not log anything... </p>
  
  <p>I used this link for reference <a href="http://www.zeenor.com/it/cms/alfresco/380-delete-nodes-documents-in-alfresco-repository-using-javascript-api.html" rel="nofollow">http://www.zeenor.com/it/cms/alfresco/380-delete-nodes-documents-in-alfresco-repository-using-javascript-api.html</a></p>
  
  <p>Any Support is appreciated... </p>