How to drop the neo4j embedded database with java? -


class GraphDatabaseService does not provide any method to drop / empty the database. What is the other way to drop / empty an existing embedded database with Java?

Just one more later it is back, delete database files (like using code Tax).

You can use it to repeat all the nodes again, remove their relationships and remove the nodes manually, perhaps avoid removing reference nodes.

If your use is doing case testing, you can use it, which will remove the database after shutdown.

Add neo4j-kernel to use ImpermanentGraphDatabase. See test jar / dependency file with name that ends with "Test.jar" for your project.

Comments