delete_email
Delete an email by moving it to Trash, or permanently remove it when expunge is set or the email is already in Trash.
Instructions
Delete an email (moves to Trash unless expunge=True or already in Trash).
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": {
"uid": "<uid>"
},
"name": "delete_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | IMAP UID | |
| folder | No | IMAP folder | INBOX |
| expunge | No | Permanently delete instead of moving to Trash |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |