delete nodes code example
Example 1: neo4j delete everything in database
MATCH (n)
DETACH DELETE n
Example 2: delete relationship neo4j
MATCH (n { name: 'Andy' })-[r:KNOWS]->()
DELETE r
MATCH (n)
DETACH DELETE n
MATCH (n { name: 'Andy' })-[r:KNOWS]->()
DELETE r