title: Deleting a neo4j node along with its relationships through java core API
body: <p>My objective is to delete a node along with all its relationships in a single shot in neo4j graph database.  </p>
  
  <p>So far, I have been following this approach,   </p>
  
  <blockquote>
    <ul>
    <li>Get all the relationships(BOTH direction) for a node   </li>
    <li>delete the relationships   </li>
    <li>finally delete the node.</li>
    </ul>
  </blockquote>
  
  <p>Is this the standard approach or anything else available? I don't intend to use Cypher query for this. I want to achieve this through Java core API itself.</p>