+1 vote
in Databases by (66.2k points)
I want to delete all nodes and relationships from a Neo4J database. Is it possible using a Cypher query?

1 Answer

+2 votes
by (66.8k points)
selected by
 
Best answer

Yes, you can delete all nodes and relationships from a Neo4J graph. Run the following Cypher query, and it will delete nodes and relationships.

MATCH (n)

DETACH DELETE n


...