I have a neo4j database that has nearly 5 million nodes and 12 million edges. I want to delete a type (UsedAt) of edge (relationship). There are nearly 3 million edges of the type "UsedAt".
I'm writing a query like
match ()-[e:UsedAt]->() delete e
This takes too much time. Never stops.
I also tried
CALL apoc.periodic.iterate("match ()-[e:UsedAt]->() return e", "delete e", {batchSize:1000, parallel:true})
That also never stops. How can I delete all edges (relationships) of a certain type efficiently on a relatively large database?