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?
Similar Posts
- Get the type of relationship variables of a node Cypher query neo4j
- Get node using id Cypher query neo4j
- Get all related nodes of a node using Cypher query neo4j
- Delete a node using id Cypher query
- Delete nodes using Cypher query neo4j
- Get all nodes cypher query neo4j
- Get all nodes with same label using label name Cypher query neo4j