Delete Library content
delete_library_contentSoft-deletes a Library video, guide, document, or article after the user explicitly confirms. The item leaves the Library immediately; Trainn removes the stored file later. Refuses when the item is still used by a published or draft course, as a course cover, or inside a published article. Inspect it first and pass expected_revision. confirmation_text must exactly equal DELETE LIBRARY <content_type> <content_id>, for example DELETE LIBRARY video abc123.
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": {
"idempotency_key": "<idempotency_key>",
"content_type": "<content_type>",
"content_id": "<content_id>",
"expected_revision": "<expected_revision>",
"confirmation_text": "<confirmation_text>"
},
"name": "delete_library_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content_id | Yes | ||
| content_type | Yes | ||
| idempotency_key | Yes | ||
| confirmation_text | Yes | Must exactly equal DELETE LIBRARY <content_type> <content_id> after the user confirms. | |
| expected_revision | Yes |