Created
July 19, 2016 11:02
-
-
Save nielsjansendk/f3cb83466b0f34c48369ca226723f26a to your computer and use it in GitHub Desktop.
How to use apoc.periodic.iterate to delete all nodes and relations in a neo4j graph
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call apoc.periodic.iterate("MATCH (n) return n", "DETACH DELETE {n}", {batchSize:1000}) | |
yield batches, total return batches, total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment