delete_email
Delete an email by moving it to Trash, or permanently remove it with permanent=true. Refused on the virtual All Mail folder.
Instructions
Delete an email: moves it to Trash unless permanent=true. Refused on the virtual All Mail 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": {
"uid": "<uid>"
},
"name": "delete_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| account | No | default | |
| mailbox | No | INBOX | |
| permanent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||