Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-08-2022 02:32 AM
Hi
We are unable to delete the data please can anyone help on us
11-08-2022 04:50 AM
Hi @simsree9 - you haven't provided enough information for us to help you. I see a "W" on line 2 that doesn't belong there (or is that big "W" hiding a bunch of loot 🙂 ). If you run the statement (without the "W"), what happens?
11-08-2022 07:15 AM
Depending on how many nodes you're trying to delete, it may be too much to handle in a single transaction. You may want to use apoc.periodic.iterate() to handle deletion with batching.
11-08-2022 09:15 PM
hi @simsree9 kindly share enough informations about what you are asking for . If you want delete node relationships i hope the below link will help
https://neo4j.com/docs/cypher-manual/current/clauses/delete/
11-09-2022 01:07 AM
Hello @simsree9 🙂
Here is the general query to remove everything but you can modify it to remove only part of your graph:
CALL apoc.periodic.iterate("
MATCH (n)
RETURN n
", "
DETACH DELETE n
", batchSize: 1000, parallel:false})
Regards,
Cobra
All the sessions of the conference are now available online