DELETE Clause
Overview
The DELETE clause is used to remove nodes or relationships from the graph database. When deleting nodes, you must ensure that the node has no existing relationships.
The DELETE clause only supports deleting nodes or relationships with a single label.
The DELETE clause cannot be followed by any other clause.
Examples
Delete nodes:
MATCH (p:Person {name: 'John'})
DELETE pDelete relationships:
MATCH ()-[f:FOLLOWS]->()
DELETE fLast updated on