Even then I don't think that left over relationship types do any damage in testing.
The addon has a way to delete the database completely but that's only used for large db's (>10k nodes). I could make it accessible programmatically. But I don't think it's worth the effort. Cheers Michael Am 08.07.2011 um 22:13 schrieb Mattias Persson: > Relationship types are never deleted from a neo4j database. That's because > it doesn't track (globally) how many relationships there are of any given > type, so deleting a type when there are no more such relationships left > isn't possible and pretty much only useful in cases like these, for testing. > > 2011/7/8 Boris Kizelshteyn <bo...@popcha.com> > >> I just started using this myself and it's pretty great except that it seems >> to leave behind the "relationship types": >> >> curl -v GET http://localhost:7474/db/data/relationship/types >> >> I'm on 1.3, any thoughts? >> >> Thanks! >> >> On Fri, Jul 8, 2011 at 11:56 AM, Patrik Sundberg >> <patrik.sundb...@gmail.com>wrote: >> >>> great, just what i was looking for. >>> >>> thanks >>> >>> >>> On Fri, Jul 8, 2011 at 3:37 PM, Jim Webber <j...@neotechnology.com> >> wrote: >>> >>>> Hi Patrik, >>>> >>>> Michael Hunger's add-on is what you need: >>>> >>>> https://github.com/jexp/neo4j-clean-remote-db-addon >>>> >>>> I believe it'll be packaged by default with our next release (but >> totally >>>> disabled!). >>>> >>>> Jim >>>> >>>> On 8 Jul 2011, at 15:32, Patrik Sundberg wrote: >>>> >>>>> Hi, >>>>> >>>>> Is there a good way to ensure I have a clean database? I'm thinking >> in >>>> the >>>>> context of running some unit tests, I'd like to have some >>> setup/teardown >>>>> hooks that ensures a clean database for various tests. >>>>> >>>>> I'm thinking for a client using the REST API here. I can see how I >>> could >>>>> write a plugin that is exposed via REST that deletes all nodes and >>> rels, >>>> was >>>>> just wondering if someone has already done this? >>>>> >>>>> Thanks, >>>>> Patrik >>>>> _______________________________________________ >>>>> 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 >> > > > > -- > Mattias Persson, [matt...@neotechnology.com] > Hacker, Neo Technology > www.neotechnology.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