delete_folder
Permanently delete a folder and all nested folders and messages. Use when the entire subtree must be destroyed, as this cascade cannot be undone.
Instructions
Permanently delete a folder, including every nested folder and all their messages.
USE WHEN: Only when the whole subtree should be destroyed. This cascades and cannot be undone.
USE INSTEAD: move_folder to get a folder out of the way, or move_message_to_folder to relocate its messages first. Check total_nested_messages_count via get_folder before calling — the cascade is easy to underestimate.
FIRST: id comes from get_root_folders (field results[].id) — call it first if you don't have one.
EXAMPLE: {"id":"folder-abc"}
RETURNS: Deletion confirmation.
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": {
"id": "<id>"
},
"name": "delete_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |