delete_folder
Delete a mail folder by ID from a specified email account. Use it to remove unwanted or obsolete folders and keep the mailbox organized.
Instructions
Delete a mail folder by ID.
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": {
"account": "<account>",
"folderId": "<folderId>"
},
"name": "delete_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | ||
| folderId | Yes | ID of the folder to delete |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| deleted | Yes |