Neo4j - How to delete unused property keys from browser?

What version of Neo4j are you using? Prior to to version 2.3 there is a file named keystore in the data/ directory that was used to populate this in the browser. Deleting this file will clear out the Labels, Relationship Types, and Property Keys listed in the browser.

Looks like this has changed now with Neo4j 2.3 so if you are using the latest version I don't think you'll have this file.


In the manual you can see that there is currently no way to disentangle which property keys are currently used without traversing the graph.

http://neo4j.com/docs/stable/rest-api-property-values.html#_property_keys

Which is a bummer because I'd like to do the same thing. TBC.


You should be able to clear everything out by:

  • stopping your Neo4j database
  • deleting everything matching data/graph.db/* (look inside the graph.db folder)
  • starting up again.

Tags:

Nosql

Neo4J