Clearing a neo4j database

To completely clear a neo4j database run the following two commands:

start r=relationship(*) delete r

match a delete a

Note that these will still leave attributes in a database.

I am trying to decide between using neo4j as storage or using it as a qurery tool.

As a query tool you clean out the database and reload it before the set of queries.

As storage you need to maintain and upgrade the db.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s