n8n · infra · fg-0344

n8n executions older than 14 days vanish and the SQLite file never shrinks

If you see Executions list stops at two weeks back, the cause and the fix for n8n are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Executions list stops at two weeks backOnly the last 10,000 executions are keptdatabase.sqlite keeps its size after executions are deleted
Cause
Pruning is on by default with a 336 hour max age and a 10,000 execution cap. SQLite keeps freed pages for reuse, so the file does not shrink until it is vacuumed.
Fix
Raise EXECUTIONS_DATA_MAX_AGE or EXECUTIONS_DATA_PRUNE_MAX_COUNT if you need longer history, export what you must keep, and enable vacuum on startup for SQLite.
Apply
EXECUTIONS_DATA_MAX_AGE=720 EXECUTIONS_DATA_PRUNE_MAX_COUNT=50000 DB_SQLITE_VACUUM_ON_STARTUP=true
Affected
Self-hosted n8n 1.x and 2.x with default settings, as of 2026-10
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun