Delete all nodes and relationships in neo4j 1.8

后端 未结 7 1862
孤独总比滥情好
孤独总比滥情好 2021-01-30 05:10

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?
7条回答
  •  死守一世寂寞
    2021-01-30 05:23

    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.

提交回复
热议问题