Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete property keys from Neo4j 3.0

Tags:

neo4j

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

like image 318
MAYA Avatar asked Dec 02 '25 17:12

MAYA


1 Answers

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.

like image 139
Martin Preusse Avatar answered Dec 04 '25 16:12

Martin Preusse



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!