I'm looking how to remove property keys from Neo4j 3.0. I tried :
MATCH (n)
DETACH DELETE n
But it doesn't delete property keys. I tried to remove data folder from my graphdb and restart the server but still have the same thing. Thank you
You can't really remove the properties from the left pane of the neo4j browser (see Neo4j - How to delete unused property keys from browser?).
To remove a property from nodes do:
MATCH (n:Node)
REMOVE n.my_key
Your query will delete the node itself.
To delete the property key from a node:
MATCH (n) WHERE EXISTS(n.foo) REMOVE n.foo
To delete the property key from a relationship:
MATCH ()-[r]->() WHERE EXISTS(r.foo) REMOVE r.foo
But even after the property key is deleted, the empty key name will for now remain part of the Database Information list for reason that only Neo4j know.