Move knowledge base media to the library's trash
colliedesk_kb_media_trashMove up to 100 library items to the trash by id, each only while no live article's current text names it; each id answers trashed, already_in_trash, in_use or not_found. all_unused with before (when you listed them) instead moves up to 500 unused items a call (kept ones only with include_kept); call again with the batch_id while more is true. Pass the batch_id of an earlier call to add to its batch; colliedesk_kb_media_undelete with it restores the whole batch. Items stay 30 days in the trash, still counting toward storage, and saving an article that names one takes it out.
Needs: kb_media:delete.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "colliedesk_kb_media_trash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| before | No | With all_unused: only items added before this, such as when you listed them. | |
| batch_id | No | ||
| media_ids | No | ||
| all_unused | No | Move the unused items instead of media_ids. | |
| include_kept | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| more | No | ||
| results | No | ||
| trashed | No | ||
| batch_id | No |