# clear_site_cron_runs

Source: https://modulify.ai/docs/mcp/scheduled-jobs/clear-site-cron-runs

Hides the stored run history of the scheduled jobs on a site.

- Title: Clear the run history
- Scope: `config:write`
- Access: Destructive

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](https://modulify.ai/docs/automations/scheduled-jobs#export-and-clear).

## 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. |