Without shutting down the server? Only manually deleting the nodes, rels and indexes, but then all your nodes have to be indexed (index-lookup) or connected (travesal) -> to simulate getAllNodes(). And then you can batch-delete them.
You would also want to get all indexes and delete them too. Am not sure about deleting the auto-indexes. Should work as well but much slower. The plugin is from the time before the batch-API. The extension also does some hard-core action if your db contains more than 10k elements. It just removes the disk-files and reinstates a new graphdb :) Michael Am 07.12.2011 um 00:29 schrieb Dmytrii Nagirniak: > Thanks Michael. > > That's definitely the best way to go. > > But I wonder if there is a way to do it without plugins. > > > On 07/12/2011, at 10:22 AM, Michael Hunger wrote: > >> I wrote a plugin for that. >> >> See here: >> >> You can just download the jar, put it in your plugins folder and add it to >> your config. >> https://github.com/jexp/neo4j-clean-remote-db-addon >> https://github.com/jexp/neo4j-clean-remote-db-addon/downloads >> >> Am 07.12.2011 um 00:11 schrieb Dmytrii Nagirniak: >> >>> Hi, >>> >>> I wonder what is the easiest and fastest way to clear the database over the >>> REST API. >>> >>> The purpose is to use it during testing and this needs to be as fast as >>> possible. >>> The data volume is not expected to be large, so maybe simple retrieval of >>> all relationships, nodes and then batch-deleting those would be sufficient. >>> >>> But the question is how do I get all nodes (not necessarily interconnected >>> or attached to ref-node) and relationships? >>> >>> Cheers, >>> Dima >>> http://www.ApproachE.com >>> >>> >>> >>> >>> _______________________________________________ >>> Neo4j mailing list >>> User@lists.neo4j.org >>> https://lists.neo4j.org/mailman/listinfo/user >> >> _______________________________________________ >> Neo4j mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user > > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user