confirm_delete_email
Confirm and execute deletion of an email using an approval token from prepare_delete_email. Moves the email to Deleted Items and returns a success or error message.
Instructions
Confirm and execute deletion of an email using a token from prepare_delete_email. Moves the email to the Deleted Items folder. Returns a success message. Returns an error if the token is invalid, expired, already used, or if the email has changed since the prepare step.
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": {
"token_id": "<token_id>",
"email_id": "<email_id>"
},
"name": "confirm_delete_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | The email ID to delete — must match the ID used in the prepare step | |
| token_id | Yes | The approval token UUID from prepare_delete_email (e.g., "a1b2c3d4-...") |