Automatically Prune n8n Execution History - n8n Workflow | Neura Market

    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 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. --- ## Workflow Nodes: 1. **Manual Trigger**: Enables on-demand testing of the workflow. 2. **Schedule Trigger**: Runs the workflow daily at the configured time. 3. **n8n List Execution**: Fetches all executions in your n8n instance. 4. **If Node**: Compares the executions' start date with the configured retention period. 5. **Delete Execution**: Deletes executions older than the specified retention period. 6. **No Operation**: Serves as a placeholder for executions that don't meet the pruning criteria. --- ## How to Customize: - **Retention Period**: Update the **If** node's condition to modify the retention period. For instance, change `10 * 24 * 60 * 60 * 1000` to the desired number of days in milliseconds. - **Schedule**: Adjust the timing of the **Schedule Trigger** to match your preferred automation schedule. This workflow ensures your instance remains efficient by keeping only the relevant execution logs. Use it to maintain a streamlined and clutter-free environment effortlessly.

    Platform
    n8n
    Category
    Business Operations & ERPs
    Price
    Free
    Creator
    Danger
    • if
    • n8n
    • noOp
    • manualTrigger
    • scheduleTrigger
    Back to MarketplaceMore n8n Workflows

    How to import this workflow into n8n

    1. 1Purchase or download the workflow to get the n8n workflow JSON file.
    2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
    3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
    4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

    Related Business Operations & ERPs workflows

    • Automate Job Applications and Track Status with LinkedIn, Indeed, and Google SheetsFree
    • Automated Stock Price Monitoring and Alerts for Indian & US Markets
    Free
  1. Build Custom Workflows Automatically with GP-4.0, RAG, and Web SearchFree
  2. AI Chat Agent Receptionist for Clinics$150
  3. Automatically Archive Zoom Recordings to Google Drive and Log in AirtableFree
  4. Automate Call Scheduling with Voice AI Receptionist Using Twilio, Google Calendar & AirtableFree
  5. More from Danger

    • WebhookDocs: Generate Swagger Preview of Your Active Workflows
    All Business Operations & ERPs workflows →All n8n workflows →

    Need help customizing this workflow?

    Our automation experts adapt it to your exact stack, data, and process — or build one from scratch.

    Get a Custom Build
    Neura Market
    Neura Market
    Marketplace
    Directories
    Resources

    Marketplace

    • Prompts
    • Workflows
    • Agents Store
    • Workflow Packs
    • Categories
    • Marketplace

    Directories

    • AI Tools Directory
    • ChatGPT
    • Claude
    • Gemini
    • Cursor
    • Grok
    • DeepSeek
    • Perplexity
    • CoPilot
    • Midjourney
    • Stable Diffusion
    • MCP Servers
    • .md Directory
    • All Directories

    Free Tools

    • AI Text Humanizer
    • AI Content Detector
    • Workflow Generator
    • Model Comparison
    • AI Pricing Calculator
    • AI Benchmarks
    • ROI Calculator
    • All Free Tools

    Resources

    • AI News
    • Blog
    • AI Models
    • Integrations
    • Alternatives
    • n8n vs Zapier
    • Make vs Zapier
    • n8n vs Make
    • Resource Library
    • Documentation

    Community

    • AI Jobs
    • AI Events
    • AI Companies
    • Start Selling
    • Sell n8n Workflows
    • Sell AI Agents
    • Sell Prompts
    • Creator Guide
    • Advertise
    • Affiliates

    Company

    • About
    • Contact
    • Help
    • Careers
    • Pricing
    • Terms
    • Privacy
    • License
    • DMCA

    Stay Updated

    Get the latest AI tools and insights delivered to your inbox.

    Neura Market Logoneuramarket

    © 2026 Neura Market. All rights reserved.