common-remove-item-version
Removes a version from a Sitecore item by ID or path, with options for language, archiving, recursion, and trimming recent versions.
Instructions
Removes a version of a Sitecore item.
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": {
"language": "<language>"
},
"name": "common-remove-item-version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The ID of the item to remove version for. Supply this or path. | |
| path | No | The path of the item to remove version for (e.g. /sitecore/content/Home). Supply this or id. | |
| archive | No | Moves the items to the archive rather than recycle bin. | |
| recurse | No | Removes language versions from the item and all of its children. | |
| version | No | Version that should be deleted form the provided item. Version parameter supports globbing so you can delete whole version groups using wildcards. | |
| database | No | Database to resolve an id against (default master). | |
| language | Yes | Language that should be deleted form the provided item. Language parameter supports globbing so you can delete whole language groups using wildcards. | |
| maxRecentVersions | No | Trims the selected language to value specified by this parameter. |