Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tridion 2011 Core Service: How can I delete previous versions of a component?

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?

like image 483
Andreas Nellmon Avatar asked Oct 15 '12 06:10

Andreas Nellmon


2 Answers

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).

like image 99
Quirijn Avatar answered Nov 15 '22 04:11

Quirijn


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.

like image 32
Puntero Avatar answered Nov 15 '22 04:11

Puntero