common-remove-item-version-by-path
Remove specific language versions of Sitecore items by path, supporting wildcards for bulk deletion and recursive child item processing.
Instructions
Removes a version of a Sitecore item by path.
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": {
"path": "<path>",
"language": "<language>"
},
"name": "common-remove-item-version-by-path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path of the item to remove version for (e.g. /sitecore/content/Home). | |
| language | Yes | Language that should be deleted form the provided item. Language parameter supports globbing so you can delete whole language groups using wildcards. | |
| version | No | Version that should be deleted form the provided item. Version parameter supports globbing so you can delete whole version groups using wildcards. | |
| recurse | No | Removes language versions from the item and all of its children. | |
| maxRecentVersions | No | Trims the selected language to value specified by this parameter. | |
| database | No | The database containing the item (defaults to the context database). | |
| archive | No | Moves the items to the archive rather than recycle bin. |