Forum Discussion
adaziv
Apr 15, 2024Copper Contributor
Set version limits to SharePoint and OneDrive
Hi all
I would like to do some data cleaning-up on my tenant and was wandering if there was a way to reduce the version number from 500 to 100 on all OneDrives and SharePoint libraries across the tenant.
Thank you.
- Laxman VBrass ContributorDid you see this PowerShell option? https://www.sharepointdiary.com/2019/07/sharepoint-online-set-versioning-limit-using-powershell.html#:~:text=Go%20to%20your%20document%20library,on%20the%20number%20of%20versions. Steps : For old Sites /OneDrive - Run Onetime this script For New Sites - Create a On demand Job, when site created in Tenant, this script will run and change version configuration
- MaxE1310Copper Contributor
Hello adaziv ,
You can do this by usin PowerShell script, as already suggested, or using that tool.
The tool offers several bulk operations such as "Bulk delete Versions" and "Bulk update Versioning Settings." It allows you to set versioning limits in bulk for all libraries within a site or an entire tenant, allowing you to select version limits below 100.