May 14 2024 04:29 AM
Hello Team,
I'm looking for help with deleting the version history of specific files in SharePoint, but retaining the last 10 versions. I can see that I can manually delete the version history, but this is going to be a rather long task for this particular file, or i can delete them all which we don't want. I've found powershell commands which will go through all files in a document library but nothing for a specific file. Does anyone have anything which will do this?
Thank you.
May 14 2024 05:02 AM
Using PowerShell is one approach. Find a PowerShell script that deletes all version apart from x last versions and then add additional constraint for your specific file. It does require coding and some basic testing of course.
Another approach is to use 3rd party Apps that offer this functionality in the browser. i.e. delete all versions and keep x last versions. See example.
May 14 2024 05:10 AM
May 14 2024 05:17 AM
May 14 2024 06:22 AM
May 15 2024 08:16 AM