Adding new environment variable for workflow history (#4078)

This commit is contained in:
Kartik Balasubramanian
2026-01-08 10:07:28 +00:00
committed by GitHub
parent 27bc6958ee
commit ea06e96908
2 changed files with 17 additions and 0 deletions

View File

@@ -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. |

View File

@@ -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