- 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