delete_emails
Remove unwanted emails from a mailbox by soft-deleting to Trash or permanently expunging them. Use UIDs to specify which messages to delete from any folder.
Instructions
Delete emails by moving them to Trash (soft delete) or permanently expunging them.
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": {
"uids": "<uids>"
},
"name": "delete_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | Yes | Array of email UIDs to delete | |
| folder | No | Folder containing the emails | INBOX |
| permanent | No | If true, permanently expunges without moving to Trash |