delete_email
Remove an email message from a specified folder. By default, moves it to Trash; set permanent to true to expunge permanently.
Instructions
Delete an email message.
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": {
"message_id": "<message_id>"
},
"name": "delete_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | The folder containing the email (default: 'INBOX'). | INBOX |
| permanent | No | If True, permanently expunges the message. If False (default), moves it to Trash. | |
| message_id | Yes | The ID of the email to delete. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |