In Cypher (Neo4j), I am able to delete relationship using id. But When I try to delete self relationship, query is running for long time and relationship is not deleted.
I have tried following many ways:
start r=rel(5828) delete r;
MATCH (p:Person{fid:'60'})-[r:IS_RELATED_TO]->(p:Person{fid:'60'})
delete rmatch (a:Person)-[rel:IS_RELATED_TO]->(b:Person) where a.fid="60" and ID(rel)=5828 delete rel
But not able to delete from any above way.
Screenshot to delete self relationship using id:
create (node:Node {name : "Bruno"}), (node)-[:rel]->(node)
thenmatch (a:Node {name:"Bruno"})-[r:rel]->(b:Node {name:"Bruno"}) delete r
and the relationships was deleted. Using Neo4j 3.3.1 here. – Bruno PeresSTART
clause is deprecated. – Bruno Peres