delete_folder
Delete an empty IMAP folder. The operation fails if the folder is not empty, adhering to RFC standards for mail folder management.
Instructions
Delete an empty IMAP folder. Fails if not empty (per RFC).
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": "<folder>"
},
"name": "delete_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | ||
| account | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| action | Yes | ||
| folder | Yes | ||
| account | Yes | ||
| new_name | No |