How to delete all relationships in neo4j graph? How to delete all relationships in neo4j graph? ruby ruby

How to delete all relationships in neo4j graph?


in cypher:

deleting all relationships:

start r=relationship(*) delete r;

creating all relationships between all nodes, i'd assume:

start n=node(*),m=node(*) create unique n-[r:RELTYPE]-m;

but you rather dont want to have too many vertices, since it collapse on low memory (at least in my case i got 1mil vertices and 1gb ram)


In cypher3.5, start is deprecated.

You can use this cypher to delete all relationships

match ()-[r]->() delete r;