Move a folder to Trash
trash_folderMove a Folder and everything in it to Trash (restore_folder brings it back); to remove only the Folder and keep what it holds, use delete_folder_container. Refused as a whole when anything inside is outside this connection's access, or when a Note inside has an open request (request_open). 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 whose url opens Trash.
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": "trash_folder"
}
}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. |