Neo4 / Cypher : delete all relationships of a nodes
cypher, neo4j
Solution
You want:
start n=node(1000)
match n-[r]-()
delete r;
Problem
i would like to delete all relationships (incoming and outcoming) of a node (the relationships can go on many differents nodes) something like : start n=node:(1000) MATCH n<-[r]->anynode DELETE r Does not work because here "anynode" is interpreted as the "first" linked node that match. Any ideas?