Delete a folder
folder_deleteDelete a folder, its subfolders, and all messages. The folder moves to Trash unless already in it, where it is permanently removed. Preview contents with folder_get first.
Instructions
Delete a folder, its subfolders and every message in them.
Thunderbird moves the folder to Trash unless it is already inside Trash, in
which case it goes for good. Check folder_get first if the count matters —
the reply reports what was removed, but cannot put it back.
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": {
"folder_id": "<folder_id>"
},
"name": "folder_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| folder_id | Yes | ||
| dry_run_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||