Andrew, that sounds like a traversal you need to do to find exactly the nodes you need and remove them.
As Marko mentioned - either script it in Gremlin/Groovy, or implement a REST endpoint in Java, giving you full static powaah: http://docs.neo4j.org/chunked/snapshot/server-plugins.html Does that work? 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 - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. On Fri, Oct 28, 2011 at 3:02 PM, andrew ton <andrewt...@yahoo.com> wrote: > > > Yes, that's what I have been doing :) > > However what if I have 2 graphs under a root node and I just want to remove 1 > graph and leave the other alone. > > Any suggestions? > > Thanks, > > > ________________________________ > From: Linan Wang <tali.w...@gmail.com> > To: Neo4j user discussions <user@lists.neo4j.org> > Sent: Friday, October 28, 2011 7:59 AM > Subject: Re: [Neo4j] some questions > > to clear the full db, stop the server and delete the files in data folder :) > > On Fri, Oct 28, 2011 at 3:57 PM, Marko Rodriguez <okramma...@gmail.com> wrote: >> Hi, >> >>> 2. Assume I have a big graph in the REST server, what is the best way to >>> remove the whole graph? Of course deleting each node and its relationships >>> and its index is not convenient. >> >> >> Via Gremlin Plugin, you can call g.clear(). >> >> HTH, >> Marko. >> >> http://markorodriguez.com >> _______________________________________________ >> Neo4j mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > > > > -- > Best wishes, > > Linan Wang > Architect, Programmer, PhD > _______________________________________________ > 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