Who is this workflow for? Streamline your n8n instance with this automated workflow that efficiently prunes outdated workflow executions. By removing executions older than a specified retention period, this workflow maintains a clean environment and enhances overall performance..

What does this workflow do?

  • Manual Trigger
  • Enables on-demand testing of the workflow to ensure it functions correctly at any time.
  • Schedule Trigger
  • Automatically initiates the workflow daily at a configured time (default: 4:44 AM) to handle routine pruning.
  • n8n List Execution
  • Retrieves all workflow executions from your n8n instance for evaluation.
  • If Node
  • Compares each execution’s start date with the defined retention period to determine eligibility for deletion.
  • Delete Execution
  • Removes executions that are older than the specified retention period, keeping your environment clutter-free.
  • No Operation
  • Leaves executions that do not meet the deletion criteria unchanged, ensuring only outdated data is removed.

🤖 Why Use This Automation Workflow?

  • Optimize Performance: Enhance the efficiency of your n8n instance by eliminating unnecessary execution logs.
  • Automate Maintenance: Reduce manual upkeep with scheduled pruning, minimizing the risk of human error.
  • Customizable Retention: Tailor the retention period to meet your specific operational needs.

👨‍💻 Who is This Workflow For?

This workflow is designed for developers, system administrators, and businesses utilizing n8n who need an automated solution to manage and maintain their workflow execution history without constant manual intervention.

🎯 Use Cases

  1. Performance Optimization: Regularly remove old executions to ensure your n8n instance runs smoothly and efficiently.
  2. Compliance and Data Management: Retain execution logs only for the required duration to comply with data governance policies.
  3. Resource Management: Free up storage space by deleting obsolete execution data, preventing system resource overuse.

TL;DR

This automated workflow ensures your n8n instance remains efficient by systematically pruning old workflow executions. With customizable retention periods and scheduling, it provides a reliable solution for maintaining a streamlined and high-performing environment.

Help us find the best n8n templates

About

A curated directory of the best n8n templates for workflow automations.