4.3 · Lesson

Deleting Movie nodes

In previous lessons, you created a new Movie Full 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 Full 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.