🚀 New! Kestra raises $3 million to grow Learn more

Home / Solutions / Blueprints

Purge execution data including logs, metrics and outputs on a schedule

Plugins Used in this Blueprints

About this blueprint

Purge execution data including logs, metrics and outputs on a schedule

This flow will purge all execution data older than 1 month, including logs, metrics and outputs. In this specific flow, we chose to purge only the successful executions in order to keep the audit trail of failed executions. However, you can leave the states field empty to purge all execution data, regardless of the execution status, or adjust it to your needs.

It is recommended to run this flow on a monthly schedule to keep your Kestra instance clean and save storage space.

Note that this flow will not purge the flow definitions or the namespace files — your code will be safe. Only the execution data will be purged.

More Related Blueprints

New to Kestra?

Use blueprints to kickstart your first workflows.