MATCH (n:Person)
WHERE ID(n)=10
DETACH DELETE n
The above Cypher query will match the nodes that have a Person label associated with them. Then it will filter the nodes that have id 10 and then it will delete that node along with its relationship to other nodes.
MATCH (n:Movie {id: 5})
DETACH DELETE n
0 Comments