workflows.fit
Back to n8n workflows
n8n templateFreeBy Danger

Automatically prune n8n execution history

Automated Execution Pruning This workflow is designed to help you manage and optimize your n8n instance by automatically pruning old workflow executions, ensuring a cleaner environment and improved performance. You ca...

Core NodesDevelopmentManual TriggerN8nIfSchedule Trigger
Loading interactive preview...

Template notes

Automated Execution Pruning

This workflow is designed to help you manage and optimize your n8n instance by automatically pruning old workflow executions, ensuring a cleaner environment and improved performance. You can customize the retention period to suit your needs.

---

Key Features: 1. Configurable Retention Period: The workflow is preconfigured to delete workflow executions older than 10 days. You can easily adjust this duration by modifying the condition in the If node.

2. Daily Automation: Using the Schedule Trigger, the workflow runs daily at the specified time (default: 4:44 AM), retrieving all workflow executions and identifying those that are older than the defined retention period.

3. On-Demand Testing: The Manual Trigger allows you to test the workflow at any time, ensuring everything is working as expected.

4. Decision Making: The If node evaluates each execution based on its start date and determines whether it should be deleted or retained.

5. Execution Pruning: - Delete Action: Executions meeting the criteria are removed via the Delete Execution node. - No-Operation: Executions that don't meet the criteria remain untouched.