delete_mailbox
Delete a mailbox folder, either empty or with force to move its emails to Trash. System mailboxes cannot be deleted.
Instructions
Delete a mailbox (folder). The mailbox must be empty or you must set force=true to delete with all contents. System mailboxes (Inbox, Trash, etc.) cannot be deleted.
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": {
"mailboxId": "<mailboxId>"
},
"name": "delete_mailbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Set to true to delete the mailbox even if it contains emails (moves emails to Trash). Default: false (only delete if empty). | |
| mailboxId | Yes | The mailbox ID to delete |