delete_folder
Remove a custom email folder without losing its messages; mail automatically returns to the Inbox or Sent view.
Instructions
Delete a custom folder. Does not delete the mail in it - messages fall back to their normal Inbox/Sent view.
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": {
"domain": "<domain>",
"localPart": "<localPart>",
"id": "<id>"
},
"name": "delete_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Folder id, from list_folders | |
| domain | Yes | A domain, e.g. example.com | |
| localPart | Yes | The part before @, e.g. "hello" for hello@example.com |