Shut down nightly active workflows with the n8n API and data tables
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 8 nodes and runs on a schedule (every day at 22:00). It uses only n8n's built-in nodes.
How it runs
Trigger: On a schedule (every day at 22:00).
- Config (Edit Fields (Set)): sets 2 fields: base_url, excluded_workflow_ids
- Recupera workflow pubblicati (HTTP Request): calls an HTTP API
- Estrai singoli workflow (Split Out): splits a list into separate items
- Escludi self e workflow esclusi (If): checks a condition and branches into true / false
- Loop su ogni workflow (Loop Over Items (Split in Batches)): loops over the items in batches
- Salva in maintenance_log (Data table): uses Data table
- Disattiva workflow (HTTP Request): calls an HTTP API (POST)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - If
n8n-nodes-base.if - Data table
n8n-nodes-base.dataTable - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches
From the author
Quick overview This workflow runs nightly at 22:30 and uses the n8n API to list all active workflows on your n8n instance, exclude specified IDs, log them to an n8n Data Table, and deactivate the remaining workflows for maintenance. How it works 1. Runs every…