Thanks, Pete, this is perfect! -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Peter Neubauer Sent: Saturday, August 27, 2011 6:47 PM To: Neo4j user discussions Subject: Re: [Neo4j] Delete all contents in graph?
Raffi, you can do something like https://github.com/neo4j/community/blob/master/kernel/src/test/java/org/neo4 j/test/ImpermanentGraphDatabase.java#L203, basically walking all nodes and deleting the relationships, and delete the nodes after that. Would that work? Otherwise, simple shutdown the DB, delete the database dir and start it again. Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Ă–resund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Sun, Aug 28, 2011 at 12:11 AM, etc1 <[email protected]> wrote: > Is there a function to delete all contents in the graph? > > Raffi > > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user > _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

