+1 vote
in Databases by (77.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 (72.7k 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


...