neo4j

Delete node relationship only Cypher query neo4j

The below Cypher query can be used to delete relationships of a node with other nodes. The query will not delete the node by relationship only.

MATCH (n {companyname: 'Devsheet'})-[r:KNOWS]->()
DELETE r
Was this helpful?