Question: I know this question is asked by many people already  

for my research, here's some questions asked before

1. [How to delete all relationships in neo4j graph?](https://stackoverflow.com/questions/12899538/how-to-delete-all-relationships-in-neo4j-graph)
2. <https://groups.google.com/forum/#!topic/neo4j/lgIaESPgUgE>

But after all, still can't solve our problems,  

we just want to delete "ALL" nodes and "ALL" relationships

![enter image description here](https://i.stack.imgur.com/ZuKFY.png)

suppose delete "ALL" can see there are left **0 nodes 0 properties and 0 relationships**

This is the screenshot i took after executing the delete "ALL" suggested by forum 

My question still the same, how do delete all nodes and all relationships in neo4j

Answer: 
**As of 2.3.0 and up to 3.3.0**

```
MATCH (n)
DETACH DELETE n

```

[Docs](http://neo4j.com/docs/2.3.0/query-delete.html#delete-delete-all-nodes-and-relationships)

**Pre 2.3.0**

```
MATCH (n)
OPTIONAL MATCH (n)-[r]-()
DELETE n,r

```

[Docs](http://neo4j.com/docs/2.2.8/query-delete.html#delete-delete-all-nodes-and-relationships)
if the name of node is for example : abcd then below query will work :

```
MATCH (n:abcd)
DETACH DELETE n

```

This will only delete the node with label "abcd" and all its relation-ships.