cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Data Deletion

Hi 

We are unable to delete the data please can anyone help on us 

simsree9_0-1667903523934.png

 

4 REPLIES 4

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?

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.

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/

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