# Database.sqlite

**URL:** <https://community.n8n.io/t/database-sqlite/6799>\
**Category:** Questions\
**Created:** [July 18, 2021, 5:44am UTC](https://community.n8n.io/t/database-sqlite/6799 "2021-07-18T05:44:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Integra\_Ninja](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/integra_ninja/32/3951_2.png) [@Integra\_Ninja](https://community.n8n.io/u/Integra_Ninja)\
**Post date:** [July 18, 2021, 5:44am UTC](https://community.n8n.io/t/database-sqlite/6799/1 "2021-07-18T05:44:12Z")

</div>

Hello, I need help to know how I can reduce the database.sqlite file, I’ve seen in several topics talking to use the command “Vacuum”, but my installation is via docker-compose and I didn’t install sqlite3… there is a tutorial on how to execute this log cleaning?

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [July 18, 2021, 2:15pm UTC](https://community.n8n.io/t/database-sqlite/6799/2 "2021-07-18T14:15:57Z")

</div>

You might want to check the env variable to prune the database.

> **[Configuration methods | n8n Docs](https://docs.n8n.io/hosting/configuration/configuration-methods/)**
>
> How to set environment variables for n8n.

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [July 18, 2021, 2:55pm UTC](https://community.n8n.io/t/database-sqlite/6799/3 "2021-07-18T14:55:02Z")

</div>

In combination with activating automatic pruning of the data as @RicardoE105 suggested, do you want to set the environment variable `DB_SQLITE_VACUUM_ON_STARTUP=true` this makes sure that the data gets automatically pruned on startup.
