Data Protection Centre/Microsoft 365/A Complete Guide to Microsoft SharePoint Retention

Categories

In this article

  • What are the apps that use SharePoint as their data storage location?
  • Default Microsoft 365 retention in SharePoint
  • Methods to retain SharePoint Online data
  • Retention policies and retention labels
  • Principles of retention
  • Preservation lock for retention labels and policies
  • eDiscovery holds
  • Versioning
  • How to enable versioning in SharePoint?
  • Restore this library
  • Microsoft 365 Backup
  • How long does SharePoint keep deleted files?
  • Third-party cloud backup solutions

A Complete Guide to Microsoft SharePoint Retention

23 Nov 2026
10 min read
Amrit Raj
  

SharePoint retention at a glance

Microsoft SharePoint retention policies are crucial for compliance and data protection.
  • Deleted files are moved to the recycle bin and retained for 93 days before permanent deletion.

  • Microsoft 365 E5 or the Microsoft Purview Suite add-on brings more retention and eDiscovery features, but still no automated recovery.

  • Retention keeps copies inside the same tenant. A copy held in the Preservation Hold library consumes the site’s storage quota and is reachable by the same administrator credentials as the original.

SharePoint is a web-based collaboration and document management solution that serves more than 1 billion users each year, according to Microsoft. SharePoint primarily serves as a data storage location for other Microsoft 365 apps and a means to share information across an organization.

Businesses’ widespread adoption of SharePoint also means that there is an increased risk of data loss. Microsoft is not responsible for backing up your data. IT administrators must retain SharePoint Online data so that business data stays available.
This article explores all the different ways in which IT admins can retain SharePoint Online data.

What are the apps that use SharePoint as their data storage location?

OneDrive and SharePoint have the same design and functions. OneDrive is meant for personal storage. SharePoint is used for collaborating with others and publishing files across the organization. Both SharePoint and OneDrive support the same features like editing Microsoft Word, Excel, PowerPoint, and OneNote, file sizes up to 250 GB, co-authoring, version history, file sharing, mobile device access, and syncing files to your computers and phones. OneDrive is a SharePoint document library for a single user. Since OneDrive is contained within SharePoint, the retention policies for both applications are the same. All the methods in this article apply to OneDrive as well.

Microsoft 365 cloud applications like Excel, Word, PowerPoint, OneNote, Sway, Planner, Visio, Whiteboards, and Viva Engage use SharePoint as their data storage location. Data from third-party applications that are integrated with SharePoint are also stored in SharePoint. In addition, Teams data such as Sites, Wiki, files shared within Teams, and meeting recordings are stored in SharePoint Online.
The Teams Wiki was retired in favor of Notes, which stores its content in OneNote on the team site.
SharePoint Data Storage Location

sharepoint data retention options

Default Microsoft 365 retention in SharePoint

When an item is deleted from a SharePoint Online site, it is sent to the site Recycle Bin (also called the first-stage Recycle Bin). It stays in the site Recycle Bin for 93 days from the time it was originally deleted, unless it’s deleted from there. If you delete the item from the site Recycle Bin, it moves to the site collection Recycle Bin (or second-stage Recycle Bin). It remains there for the remainder of the 93 days since its original deletion. The item is permanently deleted if it is either deleted from the site collection Recycle Bin or if it exceeds the default retention period.

Note: The standard retention period (93 days) begins when something is first deleted. It does not reset when the item moves from the first-stage to the second-stage Recycle Bin.
Two things can end that window early. The second-stage Recycle Bin has its own quota, and if it overflows the oldest items are purged before the 93 days are up. The Recycle Bin is not indexed, so an eDiscovery search cannot reach anything in it. A hold cannot be placed on content already deleted.

After data is permanently deleted from the site collection Recycle Bin, it is retained for an additional 14 days. During this window, administrators can contact Microsoft Support to request a restore. This is intended for disaster recovery and recovery is not guaranteed. Restorations from Microsoft backups during this 14-day window cover site collections only. Individual files, lists, or libraries are not included.

A deleted site follows its own clock. When a site is deleted it appears under Deleted sites in the SharePoint admin center. It stays there for 93 days, after which the site and everything in it is permanently removed.

Methods to retain SharePoint Online data

Retention policies and retention labels

Files stored in SharePoint and OneDrive can be retained beyond the default retention period. This requires a retention policy or a retention label. According to the data type and your business requirements, they can be used together or separately.
A retention policy assigns retention settings to content at a site or mailbox level. A retention label assigns retention settings at an item level, to a particular document, file, or email.

Retention policies and labels can preserve content even if users attempt to delete it. This supports compliance with organizational or legal requirements. Deleted items subject to retention are moved to the Preservation Hold library and remain there until the retention period expires. Microsoft no longer deletes content straight out of that library. Expired items are moved to the second-stage Recycle Bin first and permanently deleted at the end of 93 days.

Admins can manage retention policies and labels via the Microsoft Purview portal.

Note: Content in the Preservation Hold library counts towards the site’s storage quota. A long retention period on an active site can grow that library substantially. A tenant running above its allocation risks being placed in read-only mode. Extra capacity is sold as the Office 365 Extra File Storage add-on in 1 GB increments.

Records management

By applying retention labels that mark content as records, organizations can enforce restrictions that prevent editing or deletion, supporting compliance with regulatory mandates. When content is declared as a record, it cannot be edited or deleted by users, and additional restrictions apply.

For more information on records management, refer to Microsoft’s documentation on Records Management.

Principles of retention

When multiple retention settings apply to the same content, it’s important to know what takes precedence. Below are the four principles of retention:
  • Retention always takes precedence over permanent deletion.

  • The longest retention period wins.

  • Explicit wins over implicit for deletions. A retention label is explicit because it is applied to an individual item. A delete action from a label beats a delete action from any policy. A policy scoped to specific sites is explicit compared with an org-wide policy, so the scoped one wins.

  • The shortest deletion period wins.

For more detailed information on these principles, refer to Microsoft’s documentation on retention policies and retention labels.

Preservation lock for retention labels and policies

A preservation lock is used to restrict anyone, including the global administrator, from either deleting or disabling a retention policy or retention label. Preservation lock is used due to regulatory requirements and can help safeguard against rogue administrators.
Note: A Preservation Lock is irreversible and should be used cautiously.
When a retention policy is locked: no one can disable or delete it, locations can only be added, and the retention period can only be extended. When a retention label is locked: no one can disable or delete it, locations can only be added, and labels can only be added. In summary, a locked policy can be increased or extended, but it can’t be reduced or turned off.

For guidance on how to lock a retention policy, refer to Microsoft’s documentation on preservation lock.

eDiscovery holds

eDiscovery tools in Microsoft 365 place holds on data across services to retain it for legal and litigation compliance.

To learn how to create an eDiscovery hold, refer to this article Create holds in eDiscovery.

Three points are worth adding, because each one catches people out. A hold requires an eligible license on every user whose content it preserves. The administrator’s license alone is not enough. A new hold can take up to 24 hours to take effect. When a location is removed from a hold, a 30-day delay hold keeps its content preserved before anything is purged. This is the grace period people ask about.

Versioning

With versioning, SharePoint List items and Library documents can be restored to a previous state. Versioning creates a historical record of all changes with date, time, and user details of who made the changes. The end-user with relevant permissions can view, delete, or restore a version of the document if they want to.

Note: Be aware that SharePoint Online has a default limit of 500 versions for documents (which can be adjusted). Retention policies can preserve versions in the Preservation Hold library, impacting storage. Microsoft also offers an optional Automatic setting that trims older versions as content ages. Under the Automatic setting, Restore this library and Restore your OneDrive can only reach 500 versions created in the last 30 days. That is why the versioning setting directly limits what a rollback can recover.

How to enable versioning in SharePoint?

  • Step 1: Navigate to the library you want to enable versioning.

  • Step 2: Click on the Settings icon and select Library settings -> More library settings.

SharePoint document library with Settings panel showing Library settings link
  • Step 3: In the window that opens, click on Versioning settings.

SharePoint Document Library Settings page with Versioning settings link
  • Step 4: Configure the settings and click OK.

SharePoint Document Library Versioning Settings page
  • Step 5: To set the limit for the whole tenant instead, go to the SharePoint admin center, then Settings, then Version history limits. Changes there apply to new libraries; existing libraries need Set-SPOSite or Set-PnPList.

Versioning allows restoration to previous states, but it’s important to understand version limits and how versioning interacts with retention policies. See how retention works for SharePoint and OneDrive for how versions are handled under a retention policy.

Restore this library

Restore this library is usually the right tool after a mass deletion or a ransomware encryption event.
  • A site owner opens the document library, goes to Settings, and selects Restore this library. Users can do the same for their own OneDrive.

  • Pick a date within the last 30 days, or a custom point, and every change since then is undone in one action.

  • It runs off version history, so it reverses edits and deletions together.

  • The 30-day limit is fixed and cannot be extended, and it will not reach anything already past the 93-day recycle bin window.

For one file, use the recycle bin. For hundreds changed at once, this is faster than restoring items individually.

Microsoft 365 Backup

Microsoft 365 Backup is Microsoft’s own backup service, and it belongs in any list of ways to retain SharePoint data.

It also stores the copy inside the same tenant, so it addresses accidental deletion. It does not protect against tenant-level compromise. See Microsoft 365 Backup for the current scope.

How long does SharePoint keep deleted files?

ScenarioHow long
A file a user deleted
93 days across both recycle bins, counted from the first deletion
A whole library or OneDrive, rolled back
30 days, using Restore this library
A previous version of a file
Up to 500 versions by default, or trimmed by age under Automatic limits

Third-party cloud backup solutions

The native settings offered by Microsoft help retain your data for legal compliance. They do not serve as a backup solution. Microsoft is not responsible for backing up your data and they recommend using third-party apps for backup.
Third-party cloud backup tools such as SysCloud let you restore specific or all files in a few clicks. They retain safe copies of organizational data after employee exits and account deletions. With SysCloud’s Ransomware Protection add-on, a safe backup snapshot is identified automatically during a ransomware attack so the affected files can be restored.
Get actionable SaaS administration insights

We don’t spam. Unsubscribe anytime.

In this article

  • What are the apps that use SharePoint as their data storage location?
  • Default Microsoft 365 retention in SharePoint
  • Methods to retain SharePoint Online data
  • Retention policies and retention labels
  • Principles of retention
  • Preservation lock for retention labels and policies
  • eDiscovery holds
  • Versioning
  • How to enable versioning in SharePoint?
  • Restore this library
  • Microsoft 365 Backup
  • How long does SharePoint keep deleted files?
  • Third-party cloud backup solutions

Start enjoying faster and easier backups, today

Avoid costly data retention gaps and minimize time to recovery with SysCloud's cloud backup.Start 30-Day Free Trial
Certifications
Certifications