Answers for "neo4j remove node"

2

neo4j delete everything in database

MATCH (n)
DETACH DELETE n
Posted by: Guest on July-20-2020
0

neo4j delete node by id

MATCH (p:Person) where ID(p)=1
OPTIONAL MATCH (p)-[r]-() //drops p's relations
DELETE r,p
Posted by: Guest on May-07-2021
0

neo4j delete node by id

MATCH (p:other) where p.tag_id="792e93e4-84b2-47ba-8961-e284a04b272b"
DELETE p
Posted by: Guest on May-07-2021

Browse Popular Code Answers by Language