cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete specific version of an content.

amit_wmw
Champ in-the-making
Champ in-the-making
Hello

Is there any method to delete "Specific" version of an uploaded document.

Right now I am using deleteVersionHistory method of VersionService, but it deletes all versions of document except the specified one. But my need is to specify a version number (say 1.1) and to delete only that specific version leaving all other specific version.

Please suggest.

Thanks
Amit.
3 REPLIES 3

janv
Employee
Employee
The VersionService now supports "deleteVersion", available with Alfresco Labs 3d (Stable/Final) release.

Regards,
Jan

amit_wmw
Champ in-the-making
Champ in-the-making
Thanks Jan.

But I am using 2.1 community edition, so I am afraid I can use as what you suggested  Smiley Sad

Is there any workaround? Any alternative way to achieve this in 2.1?

Please suggest.

Thanks
Amit.

jayjayecl
Confirmed Champ
Confirmed Champ
Except for you to browse code of Labs 3d, and try to build your custom VErsionServiceCustom implementing the new method (and pray for it to work), I can't see any workaround