How to delete unused labels?
Kỳ Nguyễn Cao
The problem arose when I tried to add labels to a perspective. There are too many unused labels and I couldn't have found any way to get rid of them. The same problem goes with unused property keys. There is not any option to restart the database from scratch. Additionally, model created by Cypher query cannot be inspected like those in Import/Sketching a model section.
So annoying and disappointed. Bad user experience for newbie.
Gregory King
Hey,
Sorry to hear about your experience. While we work on things to address your valid concerns, here are a few things that could help in the interim.
Unfortunately there is no way to remove unused property keys at present, but In Aura Professional you can find an option to reset your instances to blank (first img).
Calling
CALL db.schema.visualization
will usually give you a good indication of what's in your database (second img).Perspectives can be configured by adding or removing categories that pertain to labels, you can read more about them here.
It can happen that you see labels presented in our tools when you have no nodes in the database with those labels. This is usually because constraints remain in the database for those labels. In your case these could have been created as part of the import process. You can inspect what constraints exist by running
SHOW CONSTRAINTS
and read up more about managing constraints here.Neo4j is a schema-less database, which can make it a little harder to get a handle on what's in your database as its contents evolve. We're working on more optional schema features as the product evolves.
Thanks for your valuable feedback.