Suresh Payankannur

Saturday, May 24, 2014

Neo4j Labels Cannot be Deleted

In Neo4j version 2.1.0-RC2 labels once created cannot be deleted, even after all the nodes has been dropped. The only way around is to completely delete the database!
create (u:User {name: "John Doe", email: ""})
create (b:Blog {name: "My Blog"})
match n delete n
Now if looking at the WebUI, you can see both labels are still present. In addition, by calling the REST API http://localhost:7474/db/data/labels returns both labels, even though there are no nodes referring to it. There is no current API or command to delete these orphaned labels.


Post a Comment

Blog Archive

Scroll To Top