Nicole Marie
Nicole Marie

Reputation: 131

How to remove label on node in Neo4j?

On some of the nodes, I put a label of "Englist" instead of "English". When I tried to relabeling it, I added a new label "English". Now I have both labels on the node.

How do I get rid of the "Englist" label? Without Deleting the node.

Upvotes: 3

Views: 6603

Answers (1)

InverseFalcon
InverseFalcon

Reputation: 30417

For future reference on this and other things, the Cypher ref card is invaluable.

You want the REMOVE command, specifying the bound variable and the label to remove.

For your case:

MATCH (e:Englist)
REMOVE e:Englist

Upvotes: 9

Related Questions