To delete a node in Neo4j, we have to use the DELETE clause. It also can be used to delete

relationships or paths. The syntax will be as following to delete a single node:

MATCH (n:Person { name: 'UNKNOWN' })

DELETE n

To delete all nodes:

MATCH (n)

DETACH DELETE n

Suggest An Answer

No suggestions avaliable!