Delete Nodes Without Labels.

Delete nodes without labels


MATCH (n)
WHERE size(labels(n)) = 0
DETACH DELETE n


Similarly you can find nodes without labels using:


MATCH (n) WHERE size(labels(n)) = 0 RETURN n



Comments

Popular posts from this blog

Updating a Property on a Highly Accessed Node

Stopping and Starting the Neo4j Database

MERGE made a new Node