delete_folder
Delete an empty mailbox folder permanently. Ensure no messages remain and avoid system folders; removal is irreversible.
Instructions
Delete an empty mailbox folder via IMAP. The folder must contain no messages — move or trash all messages first. Do NOT delete system folders (INBOX, Sent, Trash, Archive, Spam). Irreversible; messages already removed cannot be recovered this way.
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": {
"path": "<path>"
},
"name": "delete_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Folder path to delete. | |
| confirmed | No | Pass true to confirm permanent deletion of the folder and all its messages. Required when PROTONMAIL_CONFIRM_DESTRUCTIVE is enabled. |