DELETE
Delete nodes or relationships
The DELETE
clause is used to delete nodes and relationships
identified within a MATCH
clause, possibly qualified by a WHERE
. Remember that you can not delete a node
without also deleting relationships that start or end on said node.
Reference: | DELETE manual page |
---|---|
Related: | :help DETACH DELETE :help MATCH :help WHERE :help REMOVE :help Cypher |
MATCH (n)-[r]-() WHERE n.name = 'Soren' DELETE r