From ea06e96908730487353d91baf4e52790c88b558c Mon Sep 17 00:00:00 2001 From: Kartik Balasubramanian <22399046+HumanistSerif@users.noreply.github.com> Date: Thu, 8 Jan 2026 10:07:28 +0000 Subject: [PATCH] Adding new environment variable for workflow history (#4078) --- .../environment-variables/workflow-history.md | 16 ++++++++++++++++ nav.yml | 1 + 2 files changed, 17 insertions(+) create mode 100644 docs/hosting/configuration/environment-variables/workflow-history.md diff --git a/docs/hosting/configuration/environment-variables/workflow-history.md b/docs/hosting/configuration/environment-variables/workflow-history.md new file mode 100644 index 000000000..126d2b9dc --- /dev/null +++ b/docs/hosting/configuration/environment-variables/workflow-history.md @@ -0,0 +1,16 @@ +--- +title: Workflow history environment variables +description: Environment variables to configure workflow history in n8n. +contentType: reference +tags: + - environment variables +hide: + - toc + - tags +--- + +# Workflow history environment variables + +| Variable | Type | Default | Description | +| :------- | :---- | :------- | :---------- | +| `N8N_WORKFLOW_HISTORY_PRUNE_TIME` | Number | `-1` | How long to keep workflow history versions before automatically deleting them (in hours). Set to `-1` to keep all versions indefinitely. | \ No newline at end of file diff --git a/nav.yml b/nav.yml index 860ee7d91..8793c562a 100644 --- a/nav.yml +++ b/nav.yml @@ -1220,6 +1220,7 @@ nav: - Timezone and localization: hosting/configuration/environment-variables/timezone-localization.md - User management and 2FA: hosting/configuration/environment-variables/user-management-smtp-2fa.md - Workflows: hosting/configuration/environment-variables/workflows.md + - Workflow history: hosting/configuration/environment-variables/workflow-history.md - Configuration methods: hosting/configuration/configuration-methods.md - Configuration examples: - hosting/configuration/configuration-examples/index.md