Simple way to delete a relationship by ID in Neo4j Cypher?

Rm558 picture Rm558 · Jan 28, 2015 · Viewed 10.1k times · Source

Using Match and Where can delete a relationship by ID.

Match ()-[r]-() Where ID(r)=1 Delete r

Is there a simpler way?

Answer

vladkras picture vladkras · Apr 3, 2017

I use

MATCH ()-[r]-() WHERE id(r)=49 DELETE r