delete_document_version
Remove an unwanted non-root document version permanently, freeing storage and decluttering version history. Confirmation required.
Instructions
⚠️ DESTRUCTIVE: Permanently delete one non-root version of a document. The root (original) version can't be deleted — delete the document instead.
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": {
"id": "<id>",
"version_id": "<version_id>",
"confirm": "<confirm>"
},
"name": "delete_document_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The document ID | |
| confirm | Yes | Must be true to confirm this destructive operation | |
| version_id | Yes | The version ID from the document's `versions` (is_root must be false) |