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?
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.