← Back to blog

n8n execution data retention: a self-hosted ops checklist

Configure n8n execution data retention, verify saving and pruning with synthetic payloads, and assign owners to storage exceptions.

An archive drawer, hourglass and held-aside slips represent n8n execution data retention decisions.

Checked against the cited sources on .

Define your n8n execution data retention policy

For a self-hosted team, n8n execution data retention starts with deciding what investigation history you need, then checking what actually remains stored. This checklist covers saving controls, pruning, synthetic verification and retention exceptions. It excludes Cloud plan retention, storage migration and a complete deployment tutorial.

The supporting n8n documentation is undated and reflects what was retrieved on 2026-10-16; it does not establish compatibility with every installed release. Confirm applicability to your installation before changing settings. The checks and completion criteria below are editorial recommendations, not mandatory standards or reported test results.

We think retention should start with a named investigation need, rather than a duration copied from another deployment. Use these opening checks; this section is complete when each workflow category has an owner and a reason for its retention window.

Sources: n8n-docs/docs/deploy/host-n8n/configure-n8n/basic-configuration/use-environment-variables/executions.md at main · n8n-io/n8n-docs · GitHub, n8n-docs/docs/deploy/host-n8n/configure-n8n/scaling/manage-execution-data.md at main · n8n-io/n8n-docs · GitHub

Choose which execution data to save

For self-hosted n8n, the execution-variable reference documents four separate saving controls. Saving failures does not guarantee that sensitive payloads are excluded. Use the table to record an explicit decision for each control.

Documented saving controls with suggested policy questions
Data categoryControlSuggested question
Failed executionsEXECUTIONS_DATA_SAVE_ON_ERRORWhat failure evidence do we need?
Successful executionsEXECUTIONS_DATA_SAVE_ON_SUCCESSWhy retain successful payloads?
Manual executionsEXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONSShould manual test data persist?
Per-node progressEXECUTIONS_DATA_SAVE_ON_PROGRESSDo we need saved progress?

Our practical preference is to retain failures where investigation needs justify it and disable unnecessary successful, manual and progress data. This section is complete when all four choices are documented and ready for verification.

Sources: n8n-docs/docs/deploy/host-n8n/configure-n8n/basic-configuration/use-environment-variables/executions.md at main · n8n-io/n8n-docs · GitHub

Record pruning thresholds and exceptions

Loose and clipped execution slips show pruning eligibility and retained exceptions in self-hosted n8n.
Separated slips illustrate why some executions remain outside scheduled pruning.

For self-hosted n8n, EXECUTIONS_DATA_PRUNE controls pruning, alongside an age threshold in hours, a maximum execution count, a hard-delete buffer and separate soft-delete and hard-delete intervals. Eligibility and deletion scheduling are distinct: these settings do not establish an exact deletion deadline for your deployment.

The execution-data guide describes scheduled pruning that marks eligible finished executions before permanent deletion. New, running and waiting executions are excluded, and annotated executions, such as those with tags or ratings, are never pruned. The count threshold does not guarantee an exact remaining count; account for count-based eligibility potentially shortening your investigation history.

Use these checks to make the schedule and exceptions reviewable. Completion means the configured values and every identified exception have been recorded.

Sources: n8n-docs/docs/deploy/host-n8n/configure-n8n/basic-configuration/use-environment-variables/executions.md at main · n8n-io/n8n-docs · GitHub, n8n-docs/docs/deploy/host-n8n/configure-n8n/scaling/manage-execution-data.md at main · n8n-io/n8n-docs · GitHub

Verify saving and cleanup with synthetic payloads

Dummy tokens, a magnifying glass and an inspected drawer depict synthetic execution retention checks.
Dummy tokens and storage inspection illustrate the proposed synthetic verification exercise.

Verify n8n execution data retention in an isolated test environment using invented sensitive fields, never real personal or company secrets. Completion means observed saving and cleanup match your recorded policy, with discrepancies captured for review.

  1. Create synthetic successful, failed and manual executions with recognizable dummy fields.
  2. Record execution identifiers and inspect which payloads are saved against your four saving decisions.
  3. Select finished, unannotated executions that meet the configured pruning eligibility.
  4. Observe them across the deletion intervals and buffer, checking relevant storage as well as history visibility.
  5. For mismatches, inspect saving settings, execution status, annotations and applicable external-storage policies.

Sources: n8n-docs/docs/deploy/host-n8n/configure-n8n/basic-configuration/use-environment-variables/executions.md at main · n8n-io/n8n-docs · GitHub, n8n-docs/docs/deploy/host-n8n/configure-n8n/scaling/manage-execution-data.md at main · n8n-io/n8n-docs · GitHub

Separate external storage cleanup from redaction

A screen hiding stored tokens contrasts with an emptied container to distinguish redaction from deletion.
Hidden tokens remain present, illustrating why redaction does not demonstrate deletion.

For self-hosted Business and Enterprise n8n, external-storage documentation distinguishes binary data from execution data. Apply the documented cleanup mechanism to each storage type in the table; completion means each applicable mechanism has an owner. The cited S3 execution-data documentation does not establish Azure execution-data cleanup behavior.

External-storage cleanup distinctions for self-hosted Business and Enterprise
Stored dataDocumented cleanupSuggested check
S3 binary dataBucket lifecycle configurationIdentify lifecycle owner
Azure binary dataLifecycle policy unless retaining indefinitelyRecord policy or intentional exception
S3 execution dataStandard execution pruningAvoid execution-data lifecycle rules

For self-hosted Enterprise and Cloud Enterprise, n8n documents redaction as a visibility control that leaves stored execution data unchanged. Availability depends on version. This checklist does not cover configuring redaction. In our view, a hidden payload is insufficient evidence for closing a deletion check.

Sources: n8n-docs/docs/deploy/host-n8n/configure-n8n/scaling/use-external-storage.md at main · n8n-io/n8n-docs · GitHub, n8n-docs/docs/deploy/host-n8n/configure-n8n/security/redact-execution-data.md at main · n8n-io/n8n-docs · GitHub

Close discrepancies with a named owner

An S3 execution-data lifecycle rule could delete data n8n still references, according to its external-storage guide for self-hosted Business and Enterprise. Treat a conflicting rule as a discrepancy to resolve before approving the review.

Close your n8n execution data retention review with the checks below. This checklist does not establish deletion from backups, replicas, external recipients or independent logging systems, or provide an organization-wide erasure guarantee. Physical disk-space reclamation and database maintenance are outside scope; successful cleanup need not mean a smaller database file.

Sources: n8n-docs/docs/deploy/host-n8n/configure-n8n/scaling/use-external-storage.md at main · n8n-io/n8n-docs · GitHub

Put this into practice

Hands-on n8n challenges

Pick a challenge and build a working workflow in your own n8n environment, with five progressive tips per challenge.

Try a hands-on challenge

For your team

Custom n8n training programs for one team or department, run on your own n8n instance with your own tools and data.

Training for your team

n8n skills assessment

A free quiz of about 20 minutes: 30 questions in 10 skill areas and a level from Beginner to Expert. On AI Adoption Score, another project by the author of this site.

Get your n8n level