Clear the email history of a site
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.
Every email the site sent disappears from list_site_email_sends, the stats, the Emails tab and the site's own getEmail and listEmails, and the cleared rows are erased for good 30 days later. 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, list_site_email_sends pages through the same history. It needs the Delete projects permission. See Danger zone.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id. |