common-remove-item-version
Removes a Sitecore item version by ID or path, with options for language, recursion, archiving, and trimming recent versions.
Instructions
Removes a version of a Sitecore item.
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. |