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

Property DataType - apoc.meta.type

Stopping and Starting the Neo4j Database

NULLS in Neo4j