1

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 1

0

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:

file.Versions.GetById()

file.Versions.deleteByID()

file.Versions.DeleteByLabel()

For Powershell:

$file.Versions.DeleteByLabel($Label)
1
  • 1
    Thank You! DeleteByLabel() method will be of great help! Commented Feb 16, 2016 at 10:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.