Forum Discussion
AMS-DavidJParkes
May 14, 2024Copper Contributor
Delete Version History
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, b...
TahirMasood
May 14, 2024Copper Contributor
You can loop through the Document Versions.count and delete to the number of version you want. if you need some code sample can work on it and share.
AMS-DavidJParkes
May 14, 2024Copper Contributor
Thanks. I'm happy to give it a go, but I'm unsure what command to start with.