Forum Discussion

adaziv's avatar
adaziv
Copper Contributor
Apr 15, 2024

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.

2 Replies

  • MaxE1310's avatar
    MaxE1310
    Copper Contributor

    Hello adaziv ,

    You can do this by usin PowerShell script, as already suggested, or using that https://dms-shuttle.com/documentation/update-versioning-limits-in-sharepoint-online-onedrive/.

    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.

  • Laxman V's avatar
    Laxman V
    Brass Contributor
    Did 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

Resources