A server extension that allows cleaning the db with a single rest call (use with care)
Pull request Compare This branch is 6 commits behind jexp:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
README.md
pom.xml

README.md

Just put the test-delete-db-extension-VERSION.jar for your Neo4j-VERSION into neo4j-server/plugins and add this to the server properties file

org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.server.extension.test.delete=/cleandb
org.neo4j.server.thirdparty.delete.key=secret-key

Then you can issue

curl -X DELETE http://localhost:7474/cleandb/secret-key

to delete the graph database without restarting the server