Skip to main content

Example graph

Remove attributes

The following query removes the ‘score’ attribute from the node representing Andy.
Result:

Remove a label from a node

To remove a label from a node use the REMOVE clause as follows:
Result:

Removing multiple labels from a node

Similar to removing a single label from a node we can use the REMOVE clause to remove multiple labels in one go
Result:

Frequently Asked Questions

DELETE removes entire nodes or relationships from the graph. REMOVE removes properties from entities or labels from nodes without deleting the entity itself.
Use MATCH (n {name: 'Andy'}) REMOVE n.score to remove the score property. The property will return null after removal.
Yes. Use the syntax REMOVE n:Label1:Label2 to remove multiple labels from a node in a single operation.
Both achieve the same result — they remove the property from the entity. REMOVE n.prop and SET n.prop = NULL are functionally equivalent.