Delete a thread
cooper_delete_threadUse this when a whole conversation should be removed permanently. Requires auth. Deletes every message in the thread, plus attachment bytes, search rows, the assignment, and the folder row. Owner tasks and updates are left in place. This cannot be undone. To keep the thread for 30 days, move it to trash with cooper_update_thread or cooper_move_threads instead. Inputs: inbox_id (required; inbox id, username, or email), thread_id (required). Returns {id, deleted:true, messages_deleted}. An unknown thread returns HTTP 404 thread_not_found. Another account's inbox returns inbox_not_found.
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": {
"inbox_id": "<inbox_id>",
"thread_id": "<thread_id>"
},
"name": "cooper_delete_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inbox_id | Yes | Inbox id (inb_…), username, or full email address owned by this key | |
| thread_id | Yes | Thread id (thr_…) to delete |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Stable id of the returned object. Pass it to the matching get, update, or delete tool. | |
| deleted | No | True when the object was deleted. | |
| messages_deleted | No | How many messages were deleted with it. |