# clear_site_email_history

Source: https://modulify.ai/docs/mcp/emails/clear-site-email-history

Clears the whole email history of a site, while sending, this month's allowance and the blocked addresses stay as they are.

- Title: Clear the email history of a site
- Scope: `config:write`
- Access: Destructive

Every email the site sent disappears from `list_site_email_sends`, the stats, the **Emails** tab and the site's own `getEmail` and `listEmails`, but Modulify keeps the cleared rows, hidden, and their idempotency keys stay taken for 30 days. Bulk emails that finished are removed too, while one still going out keeps going. Sending keeps working, and this month's allowance and the blocked addresses do not change.

There is no undo, so the tool tells the client to confirm with you first. **Export history** in the danger zone of the **Emails** tab downloads a full copy first, and with an access token, over MCP or the [HTTP API](https://modulify.ai/docs/api), `list_site_email_sends` pages through the same history. It needs the **Delete projects** permission. See [Danger zone](https://modulify.ai/docs/built-in/emails#danger-zone).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `projectId` | string | Yes | The site id. |