Clear the run history
clear_site_cron_runs
Hides the stored run history of the scheduled jobs on a site.
Scopeconfig:writeDestructive
Pass cronId to clear the history of one job, or leave it out to clear the history of every job on the site. Cleared runs stop appearing in listings but are only erased by the 30 day retention. It reports how many runs it cleared.
The jobs themselves and their schedules are untouched and keep firing. It needs the Delete projects permission in the workspace, the same one the danger zone of the Crons tab asks for. See Scheduled jobs.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id. |
cronId |
string | No | Clear only this job. Leave it out to clear the history of every job on the site. |