# clear_deploy_hook_calls

Source: https://modulify.ai/docs/mcp/deploy-hooks/clear-deploy-hook-calls

Hides a site's stored deploy hook call log and reports how many calls went.

- Title: Clear the deploy hook call log
- Scope: `config:write`
- Access: Destructive

Pass a `hookId` to clear the log of one hook, or leave it out for every hook on the site. Cleared calls stop appearing in listings and counts at once and are erased from the database 30 days later. The hooks themselves and their URLs are untouched and keep working.

It needs the **Delete projects** permission in the workspace, the same one the Settings tab of Deploy hooks asks for. See [Deploy hooks](https://modulify.ai/docs/automations/deploy-hooks#export-and-clear).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `projectId` | string | Yes | The site id. |
| `hookId` | string | No | Clear only this hook. Leave it out to clear the log of every hook on the site. |