At a glance
- Per workflowOpen the workflow menu, then Settings.
- Instance defaults (self-hosted)
EXECUTIONS_DATA_SAVE_ON_ERRORandEXECUTIONS_DATA_SAVE_ON_SUCCESStake all or none. - Pruning old executions
EXECUTIONS_DATA_PRUNE(default true) deletes past executions on a rolling basis. - Keep sensitive data outWorkflow settings can also redact production or manual execution data, which hides each node's input and output.
Per workflow
- Open the workflow menu, then Settings.
- Save failed production executions and Save successful production executions apply to published workflows.
- Save manual executions covers runs started from the editor.
- Save execution progress saves data after each node so a run can resume after an error. n8n notes this can add latency.
Instance defaults (self-hosted)
EXECUTIONS_andDATA_ SAVE_ ON_ ERROR EXECUTIONS_take all or none. Both default to all.DATA_ SAVE_ ON_ SUCCESS EXECUTIONS_defaults to true.DATA_ SAVE_ MANUAL_ EXECUTIONS EXECUTIONS_defaults to false.DATA_ SAVE_ ON_ PROGRESS
Pruning old executions
EXECUTIONS_(default true) deletes past executions on a rolling basis.DATA_ PRUNE EXECUTIONS_sets the age in hours before deletion. The default is 336, which is 14 days.DATA_ MAX_ AGE EXECUTIONS_caps how many are kept. The default is 10000, and 0 means no limit.DATA_ PRUNE_ MAX_ COUNT
- Per workflow
- Instance defaults (self-hosted)
- Pruning old executions
- Keep sensitive data out
Keep sensitive data out
- Workflow settings can also redact production or manual execution data, which hides each node's input and output.
Updated 2026-11-05. General guidance, not advice for your situation; we scope each project in writing before any work starts.
What the sources say
“Whether n8n should save failed executions for published workflows.”
“Whether n8n should save executions for workflows started by the user in the editor.”
Self-hosted n8n deletes executions after 336 hours (14 days) by default and keeps at most 10,000 (EXECUTIONS_DATA_MAX_AGE and EXECUTIONS_DATA_PRUNE_MAX_COUNT, docs.n8n.io, as of 2026-11-09).
Sources
- n8n docs: Configure workflow settings (checked 2026-11-09)
- n8n docs: Executions environment variables (checked 2026-11-09)
Questions people ask first
If I stop saving successful runs, can I still retry failures?
Yes, as long as failed production executions are still saved.
Does deleting a workflow keep its executions?
No. n8n deletes a workflow's execution history with it.
Tell us what you need built.
Tell us the process and the tools involved. We reply with questions or a written scope.
hello@pushbuild.com