Gmail Delete
gmail_deleteDelete Gmail messages or entire conversations by moving them to Trash by default, or permanently remove them with an explicit permanent mode when needed.
Instructions
Delete Gmail messages or one whole conversation: move them to Trash (default) or, with mode 'permanent', delete them for good. Prefer Trash, which gmail_modify_messages with untrash=true can undo; to only hide mail from the inbox, archive it with gmail_modify_messages instead. Returns status 'ok', mode, message_ids or thread_id and processed, or status 'cancelled' if the user declines. Permanent deletion, and trashing 10 or more messages, asks the user to confirm first; permanent deletion cannot be undone. Trashing several messages goes one by one, so a failure part-way leaves the earlier ones in Trash.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gmail_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'trash' (default) moves the mail to Trash, reversible with gmail_modify_messages untrash=true until Gmail empties Trash after 30 days; 'permanent' deletes it for good after the user confirms. | trash |
| dry_run | No | True previews the call instead of running it: nothing is sent to Google and the user is not asked. Returns status 'dry_run', preview, action, count (distinct message IDs; null for a thread_id), requested_count (IDs as given) and consent_required: whether the real call would ask the user to confirm. | |
| thread_id | No | Gmail thread ID: every message of that conversation is deleted; give message_ids or thread_id, not both. | |
| message_ids | No | Gmail message IDs to delete, 1 to 1,000; give message_ids or thread_id, not both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| status | No | Machine-readable operation status. | |
| processed | No | ||
| thread_id | No | ||
| message_ids | No |