GenAiHub

Last checked 19 November 2026 — responded normally.

Purge n8n execution history located in Mysql

This workflow is useful if you have lots of tasks running daily.

Live
Open / InstallLast updated November 19, 2026

Description

This workflow is useful if you have lots of tasks running daily. MySQL node (or the database used to save data shown in n8n - could be Mongo, Postgres, ... -) remove old entries from execution_entity table that contains the history of the executed workflows. If you have multiple tasks executed every minute, 1024 rows will be created every day (60 minutes x 24 hours) per every task. This will increase the table size fastly. SQL query deletes entries older than 30 days taking stoppedAt column as a reference for date calculations. You only have to setup Mysql connection properly and config cron to execute once per day in a low traffic hour, this way. An n8n automation workflow template by Miquel Colomer.

Community Metrics

Views
2,095
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—

Author

Miquel Colomer

Platform

web

Pricing model

free

Categories

  • Automation

Tags

  • n8n
  • workflow
  • mysql

Capabilities

  • 1 nodes
  • 2,095 views

Information

TypeWorkflow
Sourcen8n
AddedSeptember 3, 2026

Comments

?

Others in the same category, ranked by how often they are opened.