Hi,
I am learning neo4j. I have created few nodes and links. Now I want to delete all of them. How to delete all nodes, links and properties from a Neo4j database?
Thanks
Hi,
You can use the following query:
MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE n,r
This query will delete all the data (nodes, links, properties) from a neo4j database.
Thanks
Ads