Delete all nodes and relationships in neo4j 1.8

后端 未结 7 2043
孤独总比滥情好
孤独总比滥情好 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:36

    you are probably doing it correct, only the dashboard shows just the higher ID taken, and thus the number of "active" nodes, relationships, although there are none. it is just informative.

    to be sure you have an empty graph, run this command:

    START n=node(*) return count(n);
    START r=rel(*) return count(r);
    

    if both give you 0, your deletion was succesfull.

提交回复
热议问题