delete_email
Deletes an email, moving it to Trash by default. Can permanently delete by setting permanent=true to skip Trash.
Instructions
Delete an email. By default moves to Trash. Set permanent=true for permanent deletion (⚠️ irreversible). The mailbox must be a real folder. Use find_email_folder first if the email was found in a virtual folder.
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": {
"account": "<account>",
"emailId": "<emailId>"
},
"name": "delete_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account name from list_accounts | |
| emailId | Yes | Email ID to delete (from list_emails) | |
| mailbox | No | Mailbox containing the email | INBOX |
| permanent | No | ⚠️ Permanently delete (skip Trash) |