Skip to main content
Glama

common-remove-item-version-by-id

Remove specific versions of a Sitecore content item by ID, supporting language and version wildcards for bulk operations, with options to archive or delete recursively.

Instructions

Removes a version of a Sitecore item by ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe ID of the item to remove version for.
languageYesLanguage that should be deleted form the provided item. Language parameter supports globbing so you can delete whole language groups using wildcards.
versionNoVersion that should be deleted form the provided item. Version parameter supports globbing so you can delete whole version groups using wildcards.
recurseNoRemoves language versions from the item and all of its children.
maxRecentVersionsNoTrims the selected language to value specified by this parameter.
databaseNoThe database containing the item (defaults to the context database).
archiveNoMoves the items to the archive rather than recycle bin.

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ramseur/SitecoreMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server