Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-20-2020 08:23 AM
Hello guys,
i want to delete the complete database and there are ~3,00,000 nodes and ~82,00,000 relationship and i tried all basic steps to delete them and most of the time query crashes the server and we have to restart it again and when i set the limit very small , in some case it doesn't take time and in some cases it keeps on running.
any suggestion?
07-20-2020 08:26 AM
Hello @shubham
CALL apoc.periodic.iterate('MATCH (n) RETURN n', 'DETACH DELETE n', {batchSize:1000})
Regards,
Cobra
07-20-2020 09:44 AM
getting this error -
"Cannot truncate a negative index. Tried to truncate from 8870"
07-20-2020 11:17 AM
Do you have index or constraints?
07-21-2020 02:41 AM
Dropped all of them. Now, there is none.
07-21-2020 04:57 AM
Can you execute again the cypher query I gave you?
07-21-2020 01:04 PM
tried, getting same error.
07-24-2020 10:08 AM
Try this query
match(n:org_name) detach delete n;
07-21-2020 06:24 AM
If you are using local then go to folder of your data and delete the database which you want to delete .
folder location should be /neo4j--data--dbms
Note: If you want to delete whole data in your database
07-21-2020 01:25 PM
Which version of Neo4j are you using?
Could you reinstall a new database with the latest version available?
All the sessions of the conference are now available online