刪除節點的標籤
刪除節點或關係的屬性spaREMOVE <property-name-list> REMOVE <label-name-list>
// 刪除節點屬性rem
match (u:User)
where u.id = 4
remove u.address,u.age,u.gender
return u 標籤
//刪除關係屬性co
match (u1:User) -[r]->(u2:User)
where u1.id = 6
remove r.type
return rblock
//刪除節點的標籤return
match (u:User)
where u.id = 6
remove u:Actor
return uab
match (u:User)
where u.id = 6
remove u:Actor:User
return u
//不能刪除關係的類型
match (u1:User)-[r:DIRECT]->(u2) where u1.id = 6 remove r:DIRECT