New workflow to remove execution history of specific workflow peiordically

Hey @vibinchander, welcome to the community!

You wouldn’t need a workflow for this and could simply follow the implement the maintenance steps described here in the docs (and seeing you’re using SQLite also the part from the Keep in mind box) and then restart n8n.

The restart can take quite a while if you already have a lot of executions in your database (@mcnaveen tested this recently with 100,000s of executions, you can find a first hand report here).

This process will also require some free space on your hard drive (SQLite essentially rebuilds the database before deleting the old one).