To view the n8n flow demo and copy the JSON you need to purchase our Bundle... don't worry, it's FREE

Go to the BUNDLE

Purge n8n execution history located in Mysql

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 quickly.

SQL query deletes entries older than 30 days taking stopped At column as a reference for date calculations.

image.png

You only have to setup Mysql connection properly and config cron to execute once per day in a low traffic hour, this way

image.png

Do you want to automate your business?

Let's talk about your project