Archive monthly data table records on schedule
Recipe ToolsMarketing
What it does
When the scheduled date arrives each month at 3 AM, this automation searches a data table for old records. It then deletes each one so the table stays current and performs well.
Who it's for
Operations teams who maintain data tables and need regular cleanup without manual work.
How teams use this
Remove expired records monthly
Delete records older than 12 months on the fifth of each month at 3 AM. The table size shrinks and queries run faster without manual intervention.
Run cleanup before production sync
Execute the cleanup before a monthly data sync to production so test records do not carry over. Only live data makes the journey to the production table.
Filter records by status before deletion
Add a condition to delete only records marked as inactive or archived, leaving active records untouched. This requires a status field and a filter rule in step 2.
How it works
- Run on the fifth at 3 AM. This automation starts every month on day 5 at 03:00:00 AM, so old records are removed on a predictable schedule.
- Find records to remove. Search the Workato Db Table for records that match the cleanup criteria, such as those older than a set date or marked for deletion.
- Delete each matching record. For each record found in step 2, delete it from the Workato Db Table so only current data remains and query performance improves.