SOURCE-BASED ANALYSIS · NO HANDS-ON RATING
Start from the evidence an operator needs
n8n can save different execution categories and prune completed execution data by age or count. The official self-hosting guidance recommends avoiding unnecessary saved data and enabling pruning. A retention policy should still preserve enough failed execution detail to diagnose errors and enough approved evidence for the workflow's operational requirements.
Build a retention matrix
For a fictional low-risk synchronization, decide separately whether to retain successful, failed and manual executions. Record the required investigation window and any external audit evidence before choosing values.
| Execution class | Proposed treatment | Reason |
|---|---|---|
| Successful routine run | Short retention or no saved payload | Limit repetitive storage |
| Failed production run | Retain for investigation window | Support diagnosis and retry |
| Manual development run | Keep only when needed | Avoid test-data accumulation |
| Annotated incident | Preserve under incident policy | Retain reviewed evidence |
Understand both pruning thresholds
n8n documents age and count conditions for pruning finished executions. When either threshold applies, older eligible data can be removed. Running and waiting executions are not eligible, and annotated executions are preserved. Pruning uses a soft-delete and later hard-delete process, so an immediate database-size change should not be assumed.
- Inventory execution volume and payload sensitivity.
- Define the investigation and evidence windows.
- Choose save rules for success, error and manual runs.
- Set age and count pruning boundaries.
- Create synthetic success and failure executions.
- Verify operators can find the retained failure evidence.
- Monitor database growth after the policy change.
Account for storage implementation
For default SQLite storage, pruned space may be reused without shrinking the database file unless a separate vacuum action is configured. Binary-data storage also needs its own review. Accept the policy when routine volume remains bounded and a controlled failure can still be explained and retried. This guide is not a sizing benchmark or a substitute for backup policy.
Sources and verification
Official documentation checked on 2026-10-29. Worked examples are hypothetical planning exercises, not measured product benchmarks.