Deleting Movie nodes
In previous lessons, you created a new Movie iFull definition for node (opens in a new tab)A vertex in a graph. In a property graph it can carry labels and properties. and its iFull definition for relationship (opens in a new tab)A named, directed connection between two nodes. Every relationship has a type, a start node and an end node. in the database from your Java application. Now you will learn how to delete a Movie node and its relationships from the database.
Just as with previous derived methods for findAll() or save(), there is a derived method to delete data called deleteById(). You will use this method to delete a Movie node in Neo4j.
Join GraphAcademy to keep learning
Create your account to unlock 80+ hours of hands-on Neo4j courses, track your progress, and earn a certificate when you complete the course.
Sign in or register