I would like to use the Core Service to delete previous versions of a component, only keeping the most recent version. How can I do that?
Asked
Active
Viewed 605 times
2 Answers
10
The documentation says about the Delete method: "Permanently deletes the item or a specific version of the item from the system"
So you can delete versions by passing in the uri of the version (e.g. tcm:2-123-64-v4).

Quirijn
- 3,549
- 15
- 30
8
Tridion ships by default with a tool called "Purge Tool" that you can use for this purpose.
- You can find more info on the online documentation
There is a visual interface, but also if you have business requirements to do this programmatically, or as a scheduled task, it also provides a command line interface.

Puntero
- 2,310
- 15
- 18
-
Thanks, I didn't know of the Purge Tool. Unfortunately it's not quite what I need. I am creating a tool which deletes the history of components classified with a specific keyword. Is it possible to accomplish this with the Purge Tool or by using the Core Service? – Andreas Nellmon Oct 15 '12 at 07:40