Is it possible that I can delete versions of a particular document when I have a pool of minor Versions available? NB: I do not want to iterate through all the item versions, but just access through the Version Label and delete them.
1 Answer
Several methods allow you to retrieve the specific version by its ID or label and since you are about to delete them, I think DeleteByLabel() is the most appropriate:
For Powershell:
$file.Versions.DeleteByLabel($Label)
-
1Thank You! DeleteByLabel() method will be of great help!Nirmalya Basu– Nirmalya Basu2016-02-16 10:05:33 +00:00Commented Feb 16, 2016 at 10:05