Cypher - DELETE

     删除节点 / 关系node

DELETE <node-name-list>
DELETE <node1-name>,<node2-name>,<relationship-name>

//删除关系数据库

match (u1:User)-[r]->(u2:User)
where u1.id = 8
delete r
spa

//删除节点ip

match (u:User)
where u.id = 5
delete u                   
  //删除节点以前,必须先删除关系io

//删除节点和其全部关系数据

match (u:User)
where u.id = 8
detach delete u
co

//删除数据库中的全部节点block

match(n)
detach delete u 
let

相关文章
相关标签/搜索