delete_transactional_email
Permanently delete a saved transactional email template by ID or slug to retire obsolete sends, free the slug for reuse, and keep delivery history and analytics.
Instructions
Permanently delete a saved transactional email template by ID or slug. Use this to retire an obsolete template: the slug stops sending and becomes free to reuse. Already-sent deliveries and their stats are kept, so history and analytics survive the delete. The linked email content stays as a reusable template and comes back as deleted.emailId; pass that to delete_template to remove the content too. Code-managed emails (managedBy: code) are the exception: their content snapshot is deleted with them and deleted.emailDeleted is true. To stop sends without losing the template, call update_transactional_email with enabled set to false instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"idOrSlug": "<idOrSlug>"
},
"name": "delete_transactional_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idOrSlug | Yes | Transactional email ID or API slug, for example `welcome-email`. | |
| companyId | No | Company ID. If not provided, uses the currently selected company. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Additional context about the result. | |
| items | No | Fallback array wrapper used only when a tool returns a bare array. | |
| value | No | Fallback object wrapper used only when a tool returns a non-object value. | |
| deleted | No | Deleted transactional email: id, slug, name, emailId of the email content, and emailDeleted (true for code-managed emails, whose content snapshot was deleted; false when the content was kept as a reusable template). | |
| message | No | Human-readable status, confirmation, or next-step message. | |
| success | No | Whether the Sequenzy operation succeeded. | |
| warnings | No | Non-fatal cautions about content, permissions, or follow-up actions. |