# Choose which n8n executions to save, and for how long

## At a glance

**Per workflow**Open the workflow menu, then Settings.

**Instance defaults (self-hosted)**`EXECUTIONS_DATA_SAVE_ON_ERROR` and `EXECUTIONS_DATA_SAVE_ON_SUCCESS` take all or none.

**Pruning old executions**`EXECUTIONS_DATA_PRUNE` (default true) deletes past executions on a rolling basis.

**Keep sensitive data out**Workflow 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_DATA_SAVE_ON_ERROR` and `EXECUTIONS_DATA_SAVE_ON_SUCCESS` take all or none. Both default to all.
- `EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS` defaults to true. `EXECUTIONS_DATA_SAVE_ON_PROGRESS` defaults to false.

## Pruning old executions

- `EXECUTIONS_DATA_PRUNE` (default true) deletes past executions on a rolling basis.
- `EXECUTIONS_DATA_MAX_AGE` sets the age in hours before deletion. The default is 336, which is 14 days.
- `EXECUTIONS_DATA_PRUNE_MAX_COUNT` caps how many are kept. The default is 10000, and 0 means no limit.

1. **Per workflow**
2. **Instance defaults (self-hosted)**
3. **Pruning old executions**
4. **Keep sensitive data out**

The parts of this guide, in order.

## 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](https://docs.n8n.io/workflows/settings/) (checked 2026-11-09)
- [n8n docs: Executions environment variables](https://docs.n8n.io/hosting/configuration/environment-variables/executions/) (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.

## Read next

[**n8n**](https://pushbuild.com/tools/n8n.html)[**Retrying a failed n8n execution**](https://pushbuild.com/guides/n8n-retry-failed-execution.html)[**Queued executions on n8n Cloud**](https://pushbuild.com/guides/n8n-cloud-executions-queued.html)

## 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](mailto:hello@pushbuild.com?subject=Automation%20question)

---
As of 2026-12-03. Source: https://pushbuild.com/guides/n8n-choose-executions-to-save.html
