jexp / neo4j-clean-remote-db-addon

A server extension that allows cleaning the db with a single rest call (use with care)
55 stars 7 forks source link

Not working as described after upgrade #14

Open pvencill opened 11 years ago

pvencill commented 11 years ago

I recently upgraded my neo4j database from 1.7.2 to 1.8.1, and this plugin is not working anymore. I went through the steps to install it to the new instance (ie copied it to the plugins folder of the upgraded instance, updated the neo4j-server.properties file for the new server), but no dice. When I try and do it from he command line using Curl, I get two responses which both say 'empty response from the server', and can see that nothing was deleted from the database.

I've also tried restarting my neo4j instance (even though your docs say I don't have to) just in case, but no luck there either.

jexp commented 11 years ago

You don't need it anymore, a simple cypher delete statement is enough to clean the graph.

start n=node(*)
match n-[r?]->()
delete r
where id(n) <> 0
delete n
pvencill commented 11 years ago

Ah, didn't know that. Thanks!

On Tue, Feb 26, 2013 at 2:09 PM, Michael Hunger notifications@github.comwrote:

You don't need it anymore, a simple cypher delete statement is enough to clean the graph.

start n=node(*) match n-[r?]->() delete r where id(n) <> 0 delete n

— Reply to this email directly or view it on GitHubhttps://github.com/jexp/neo4j-clean-remote-db-addon/issues/14#issuecomment-14133347 .

Paul Vencill Co-Founder CyberStride LLC