logo
search
Version History Issues

How Long Are SharePoint and OneDrive File Versions Retained?

Steve KSteve K Oct 21, 2026 869 views

Question details

The user wants to know the retention duration and capacity limits for file versions stored in SharePoint Online and OneDrive.

How Long Are SharePoint and OneDrive File Versions Retained?
Product
SharePoint and OneDrive
Device & OS
not provided
Scenario
Managing file versions, recovering from corrupted files, and configuring document library retention settings.
Observed behavior
The user needs clarification on how many past document versions are kept automatically and what happens to older versions when the limit is exceeded.
Before you start

Ensure you have Site Owner or Library Administrator permissions in your SharePoint site or OneDrive to view and modify the versioning settings.

Solution 1Recommended

Review and Modify the Document Versioning Limit

Check how many versions your library is configured to keep and adjust the limit to suit your document retention needs.

By default, SharePoint and OneDrive retain up to 500 versions of a document. Version retention is based on a numerical limit rather than a time limit. When the configured limit is reached, the oldest version is automatically deleted to make room for the newest one (e.g., adding version 501 permanently deletes version 1).

1
Open Library Settings

Navigate to your SharePoint site or OneDrive library, click the Settings gear icon in the top right, and select 'Library settings'.

2
Access Versioning Settings

If a modern panel opens, click 'More library settings'. Then, under the General Settings column, click on 'Versioning settings'.

3
Modify the Version Limit

Scroll to the 'Document Version History' section. Enter your preferred number in the 'Keep the following number of major versions' field.

4
Save Your Changes

Click the 'OK' button at the bottom right of the page to apply the new versioning limits to the library.

Review and Modify the Document Versioning Limit
Storage Impact: Increasing the version limit will consume more of your overall SharePoint or OneDrive storage quota, as each saved version contributes to your total storage usage.
Free Microsoft Office alternative

Protect Your Documents with WPS Office and WPS Cloud

If you are managing complex documents and need a reliable, lightweight alternative to Microsoft Office, WPS Office offers a seamless editing experience. With built-in WPS Cloud, you can automatically save your work, securely manage file versions, and ensure your data is always safe without complex configurations.

  1. 1. Download and Install: Visit the official WPS Office website and download the free installation package for your device.
  2. 2. Enable WPS Cloud Backup: Sign in with your WPS account and enable cloud sync to automatically capture version history as you edit.
  3. 3. Edit and Restore Easily: Open your documents to edit, and use the built-in History panel to view or restore previous versions at any time.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats.Built-in WPS Cloud for automatic backups and intuitive version history recovery.Free, lightweight, and fast installation on Windows, Mac, Linux, iOS, and Android.Familiar user interface requires no learning curve to migrate your workflow.
microsoft office alternative - wps office

Frequently Asked Questions

Can I recover a file version that was deleted after exceeding the retention limit?

No. Once the versioning limit is reached and an older version is automatically deleted to make room for a new one, it is permanently removed and cannot be recovered from the Recycle Bin. For long-term protection, a separate backup solution is recommended.

Are file versions kept indefinitely if I don't reach the version limit?

Yes, versions are retained based on the numerical limit you set (e.g., 500 versions), not a time limit. If a document only has 50 versions, they will be kept indefinitely until the file itself is deleted or the configured limit is exceeded.

Does versioning apply to all file types in SharePoint and OneDrive?

Yes, the version history settings apply to all file types stored within a SharePoint document library or OneDrive folder, including Office documents, PDFs, plain text files, and images.

How does version history affect my cloud storage quota?

Each retained version counts towards your total SharePoint or OneDrive storage limit. However, Microsoft uses differential sync for Office files, meaning only the specific changes made between versions are saved, which minimizes the overall storage impact.