How Long Are SharePoint and OneDrive File Versions Retained?
Question details
The user wants to know the retention duration and capacity limits for file versions stored in SharePoint Online and OneDrive.

- 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.
Ensure you have Site Owner or Library Administrator permissions in your SharePoint site or OneDrive to view and modify the versioning settings.
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).
Navigate to your SharePoint site or OneDrive library, click the Settings gear icon in the top right, and select 'Library settings'.
If a modern panel opens, click 'More library settings'. Then, under the General Settings column, click on 'Versioning settings'.
Scroll to the 'Document Version History' section. Enter your preferred number in the 'Keep the following number of major versions' field.
Click the 'OK' button at the bottom right of the page to apply the new versioning limits to the library.

Restore an Earlier File Version
If your current file becomes corrupted or you need to undo unwanted changes, you can revert to a previously retained version.
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. Download and Install: Visit the official WPS Office website and download the free installation package for your device.
- 2. Enable WPS Cloud Backup: Sign in with your WPS account and enable cloud sync to automatically capture version history as you edit.
- 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.

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.




