delete a node in neo4j along with its relationships code example
Example 1: delete relationship neo4j
MATCH (n { name: 'Andy' })-[r:KNOWS]->()
DELETE r
Example 2: neo4j delete relationship nodes
MATCH (n { tag_id: '792e93e4-84b2-47ba-8961-e284a04b272b' })-[r:Related_To]->()
DELETE r