Share via

Increase the version number limit for documents in SharePoint

Nishanth Chakkere Ramesh 555 Reputation points
2024-10-24T22:10:13.4433333+00:00

Hi,

  1. Is there a way to increase the version number limit for documents in SharePoint Online?
    1. Is there a script or setting that can be used to manage this limit?
    2. Can the version number limit be managed at the site, library, or document level?
  2. At present, the limit is 500 versions. What is the behaviour if this limit is reached? Will SharePoint get rid of the older versions and keep the most recent 500 versions?

Thanks,

Nishanth Chakkere Ramesh

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

Answer accepted by question author
  1. AllenXu-MSFT 24,991 Reputation points Moderator
    2024-10-25T06:14:32.9133333+00:00

    Hi @Nishanth Chakkere,You can use PowerShell to set the version limits. For example, you can run the command:

     `Set-SPOTenant -MajorVersionLimit <int>`
    

    This allows you to specify a value between 100 and 50,000 for the number of major versions. This is tenant level.

    For site and document library level, you can take a reference to this article:

    Behavior When Limit is Reached: I suggest you set a number to delete versions when this number is exceeded. Reference: Manage version history limits for your organization.


    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.


0 additional answers

Sort by: Most helpful

Your answer

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