neo4j database delete all code example
Example 1: delete all nodes neo4j
MATCH (n) DETACH DELETE n;
Example 2: delete relationship neo4j
MATCH (n { name: 'Andy' })-[r:KNOWS]->()
DELETE r
Example 3: clear neo4j database
match (a) -[r] -> () delete a, r
match (a) delete a