NEO4J: Deleting All Nodes and Relationships

Admittedly, this is not likely to be something you do a lot in production … but while playing around in a sandbox, I have found it useful to have a quick command to “empty” my database

 

MATCH (n)
DETACH DELETE n

Leave a Reply

Your email address will not be published. Required fields are marked *