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

BY Best Interview Question ON 21 Feb 2019