neo4j clear database code example
Example 1: delete all nodes neo4j
MATCH (n) DETACH DELETE n;
Example 2: neo4j delete everything in database
MATCH (n)
DETACH DELETE n
Example 3: clear neo4j database
match (a) -[r] -> () delete a, r
match (a) delete a