Remove a folder, keep its contents
delete_folder_containerRemove only the Folder: it goes to Trash, and the Threads and Folders it held move up to its parent, unchanged. To trash the Folder with everything in it, use trash_folder. Needs Can edit and organize; expected_revision is not compared. A Folder holding Threads needs the person's yes: your client may ask them, else it answers confirmation_required — ask, then send the same call with confirm. Answers a receipt; restore_folder brings back the Folder alone.
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": {
"operation_id": "<operation_id>",
"folder_id": "<folder_id>",
"expected_revision": "<expected_revision>"
},
"name": "delete_folder_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Only after a confirmation_required answer and the person's yes: its details.confirm. Omit it otherwise. | |
| folder_id | Yes | A Folder's id, from list_folders or list_threads. | |
| operation_id | Yes | A new UUID for each write. After a lost answer, send the identical call with the same one, or check get_operation before writing again. | |
| expected_revision | Yes | Its revision from list_threads, get_thread, list_folders or get_note (not a content_revision); not compared. |