n8n_workflow_versions
List, retrieve, rollback, delete, or prune version history for n8n workflows. Automatically backs up before rollback and cleans old backups.
Instructions
Manage workflow version history, rollback, and cleanup. Versions are scoped to your n8n instance. Five modes:
list: Show version history for a workflow
get: Get details of specific version
rollback: Restore workflow to previous version (creates backup first)
delete: Delete specific version or all versions for a workflow
prune: Manually trigger pruning to keep N most recent versions Old backups are also pruned automatically (10 most recent per workflow, plus an age-based retention window).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Operation mode | |
| limit | No | Max versions to return in list mode | |
| deleteAll | No | Delete all versions for workflow (delete mode only) | |
| versionId | No | Version ID (required for get mode and single version delete, optional for rollback) | |
| workflowId | No | Workflow ID (required for list, rollback, delete, prune) | |
| maxVersions | No | Keep N most recent versions (prune mode only) | |
| validateBefore | No | Validate workflow structure before rollback |