Data retention
Finished triggers are deleted once they're older than your project's retention period. Everything recorded about them goes with them: their executions, the responses your target sent, and their tags.
Retention periods
| Plan | Finished triggers are kept for |
|---|---|
| Free | 7 days |
| Flex | 90 days |
- TimeTriggers can set a custom period for a project, which replaces the plan's period. This applies on Free too.
- You can't change the period through the API or the dashboard.
What gets deleted
A trigger is deleted when both are true:
- It's completed or cancelled.
- Its last activity is older than the retention period. Its last activity is the latest of its scheduled time and the times it was registered, queued, started, completed or cancelled.
Triggers are deleted in batches every few minutes, so one can stay a little past its period.
These are never deleted, however old they are:
- Triggers that are still scheduled, retrying, queued or running, or that have an attempt waiting to be sent.
- Skipped triggers (scheduled in the past, see Past-dated triggers). They keep their custom key, and
/declarestill counts them in their tag's set. - Recurring triggers themselves. Only their past runs are deleted, like any other trigger, and the recurring trigger keeps creating new runs.
After a trigger is deleted
- It's gone from the dashboard and from the trigger log endpoints. Reading it by ID returns
404, as for an ID that never existed. - You can't replay it.
- Its custom key was already free once the trigger finished, so deleting it changes nothing for
/scheduleor/declare. - Deleting doesn't refund quota.
To keep a trigger's outcome longer, record it in the endpoint that receives the trigger, or read it from the trigger log endpoints before it's deleted.