Change the SharePoint Online version limit on the Organization level and have the effect on all the new/existing sites, lists and remove additional versions

john john Pter 1,040 Reputation points
2025-02-28T11:41:43.8033333+00:00

Inside this official documentation @ https://learn.microsoft.com/en-us/sharepoint/version-overview seems we can define the version limits on the Organization, sites & libraries. levels

where if we need to change the setting from :-

User's image

to this settings on the organization level:-

User's image

this effect will only get reflected to new libraries inside existing sites and new sites. but this will not affect existing libraries and also will not affect versions extra than 100 on existing documents or ones created more than 10 years..

but on the site level, we seems have more control to reflect the changes on all the existing libraries and trim the extra versions using power shell scripts. but doing so will make the site to have unique setting from the Org.

so to be able to achieve what we are looking for by changing the SharePoint Online version limit on the Organization level and have the effect on all the new/existing sites, new/existing libraries and remove additional versions, can we do the following??:-

  1. Change the setting from the Org level to be 100 instead of 500, and define Time deletion limit
  2. then define this setting on each site separately + apply the trim script to each site.
  3. after that to re-force the site to re-inherit this setting back from the org?

on paper this should work, but can anyone advice if there is a shorter approach to follow? and how?

Microsoft 365 and Office SharePoint Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 51,836 Reputation points Microsoft External Staff
    2025-03-03T06:44:05.2433333+00:00

    Yes, the approach you provided is available in the SharePoint.

    Due to by default, organization level settings define the version history limits that are applied to all new document libraries created in a site.

    So, the first you mentioned is not necessary. First, use PowerShell to define versioning settings and apply the trim script in each site separately. Then set version history limit from the tenant level.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.