Behrooz Fard
Behrooz Fard

Reputation: 555

neo4j database size don't decrease when all nodes deleted

I delete all of nodes and relationships in the neo4j browser with this command:

MATCH(a) DETACH DELETE a;  

Now when I see my system info with this command:

:sysinfo

I see that my Logical Log and Total Store Size increased!
How can I decrease store size?

Upvotes: 0

Views: 428

Answers (1)

Christophe Willemsen
Christophe Willemsen

Reputation: 20185

This is due to the transaction logs retention policy.

If you are on Neo4j Community Edition, you can disable the logs fully :

Check https://neo4j.com/docs/operations-manual/current/reference/configuration-settings/#config_dbms.tx_log.rotation.retention_policy

Upvotes: 3

Related Questions