Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-19-2021 11:35 PM
Hi team,
Is there any procedure to delete the data of 1 specific label from Neo4j DB from server end ?
That label contains 2 Crores nodes.
Please Note - I am already using the query delete query in iterate but it is taking lot of time.( 5000 records in 30 min. )
Regards
Akshat
07-21-2021 12:27 AM
5000 Records in 30 min, somethings might be wrong with the way you used the driver on your server. Are excuting this in Neo4j Browser or in your own website backend?
07-21-2021 12:50 AM
Hi tard,
Thanks for the response.
I am executing the query using cypher-shell from server command line.
Regards
Akshat
07-21-2021 04:03 PM
Usually it's simple as:
MATCH (n:Label)
DETACH DELETE n
Can we have more info about the query you are using?
07-22-2021 08:26 AM
As @tard.gabriel said, can we have a bit more info?
If you are looking to delete NODES from the database, then follow his code.
If you are looking to remove a LABEL from nodes, but keep the nodes in the database, then use:
MATCH (n:Label)
REMOVE n:Label
If you want something else, again, please elaborate.
All the sessions of the conference are now available online