neo4j delete all nodes and edges based on a node code example Example: delete all nodes neo4j MATCH (n) DETACH DELETE n;