SharePoint Retention Policies and Retention Labels Explained
In SharePoint, a retention policy applies one keep or delete rule to whole sites, while a retention label applies a rule to an individual file, folder or library default. Use a policy for a baseline such as "keep everything for three years" and labels for content with its own requirement, such as contracts or records. Both are created in the Microsoft Purview portal, and both can run on the same site at once.
Published:
Last updated: 2026-12-02
What is the difference between a retention policy and a retention label?
| Retention policy | Retention label | |
|---|---|---|
| Applies to | Whole SharePoint sites, OneDrive accounts, mailboxes and other locations | Individual files, folders, document sets, or a library default |
| Visible to users | No. It works in the background. | Yes. Users can see and, if published to them, apply the label. |
| Different rules in one site | No. Everything in the site follows the policy. | Yes. Each item can carry a different label. |
| How many per item | Several policies can cover the same site | One retention label per item at a time |
| Start of the period | When content was created or last modified | Created, last modified, when labeled, or an event |
| Mark as a record | No | Yes |
| Disposition review before deletion | No | Yes |
| Applied automatically | Always, to the locations in scope | Manually, by default on a library, or with an auto-apply policy |
How does retention actually work inside a SharePoint site?
When retention applies to a site, SharePoint creates a hidden Preservation Hold library. If a user edits or deletes a file that must be kept, a copy is stored there automatically. The user's own view is unchanged: the file is edited or goes to the Recycle Bin as normal, while the retained copy remains available to compliance searches.
Points that surprise site owners:
- The Preservation Hold library is a system location. Microsoft does not support editing, deleting or moving the files in it yourself.
- Users see an error if they try to delete a library, list or site that is subject to retention.
- To retain every version of a file, versioning must be turned on for the site's libraries.
- A timer job cleans the Preservation Hold library every seven days and only considers content that has been there more than 30 days, so removal can take up to 37 days after the retention period ends.
- Expired content then goes to the second-stage Recycle Bin, where it is permanently deleted at the end of 93 days. Site collection admins can still restore it during that window.
How do you create a retention policy for SharePoint sites?
- Open the Microsoft Purview portal and go to Data Lifecycle Management, then Policies, then Retention policies.
- Select New retention policy and give it a name that states the rule, for example "SharePoint sites: retain 3 years".
- Choose the scope type. A static scope lists specific sites. An adaptive scope uses a query on site properties, so new matching sites are included automatically.
- Turn on the SharePoint sites location and choose all sites or specific ones. Add Microsoft 365 Group mailboxes and sites for group-connected team sites, and OneDrive accounts if required.
- Choose the retention setting: retain for a period, retain forever, or only delete content when it reaches a certain age. For a retain period, choose what happens at the end: delete automatically or do nothing.
- Review and submit. Allow time for the policy to reach every site before you test it.
A static policy can list up to 100 specific SharePoint sites. For more than that, apply the policy to all sites, split it into several policies, or use an adaptive scope.
How do you create and publish retention labels?
- In the Purview portal, go to Records Management (or Data Lifecycle Management), then File plan or Labels, and create a label.
- Set the period, what starts it, and what happens at the end: delete, start a disposition review, apply another label, or do nothing. Choose whether the label marks items as a record.
- Create a label policy to publish the label to the SharePoint sites where users should be able to apply it, or an auto-apply policy that labels content matching sensitive information, keywords or a trainable classifier.
- In a document library, a published label can then be applied to a file from its details pane, or set as the library's default so new files receive it automatically.
Published labels do not appear in libraries instantly. Plan for a delay before telling site owners the labels are ready. A tenant supports up to 1,000 retention labels, so keep the file plan short and meaningful.
What happens when retention rules conflict?
A file can be covered by a tenant-wide policy, a site policy and a label at the same time. Microsoft resolves the outcome with four principles, applied in order:
- Retention wins over deletion. Content is not permanently deleted while any setting still requires it to be kept.
- The longest retention period wins. If one rule says three years and another says ten, the file is kept for ten.
- Explicit wins over implicit for deletions. A retention label on the item takes precedence over a policy on the site when deciding deletion.
- The shortest deletion period wins. If deletion is still undecided between policies, the shortest period applies.
In practice, a retention policy cannot shorten what a label demands, and a delete-only policy cannot remove content another rule retains.
Which should you use: a policy, a label, or both?
| Situation | Use |
|---|---|
| Baseline rule for every site, with no user involvement | Retention policy on all SharePoint sites |
| One department's sites need a longer period | Retention policy scoped to those sites (static or adaptive) |
| Contracts, HR files or financial records kept longer than everything around them | Retention label, ideally as a library default or auto-applied |
| Documents that must not be changed or deleted | Retention label that marks the item as a record |
| Someone must approve deletion | Retention label with disposition review |
| Clear out old, low-value content | Delete-only retention policy, after confirming nothing else needs it |
What should you check before you turn retention on?
Retention makes content harder to remove, so tidy first. Deleting a site, library or stale content becomes slower, or blocked, once a policy applies.
- Inventory the sites. Know which sites exist, who owns them and how large they are. See exporting SharePoint sites, owners and storage to CSV.
- Find stale and duplicate content. Retaining redundant files for years costs storage. See SharePoint storage cleanup.
- Check versioning settings on the libraries that matter, because retained versions depend on them.
- Decide who reviews dispositions before you publish a label that needs review.
SharePoint Essentials Toolkit produces the site, storage and file inventory reports for this preparation work, including the Community Edition, which is free on up to 20 sites per Microsoft 365 tenant.
Frequently asked questions
Can a SharePoint file have a retention policy and a retention label at the same time?
Yes. A file in a site covered by a retention policy can also carry a retention label. The principles of retention decide the combined outcome: content is kept for the longest period any rule requires.
Can I delete a SharePoint site that has a retention policy?
Not directly. Users see an error if they try to delete a site, library or list that is subject to retention. Remove the site from the policy's scope first, and allow time for the change to apply.
Where do retained SharePoint files go?
Copies are stored in the Preservation Hold library, a hidden system library on the same site. It is created automatically and is not meant to be used interactively.
How long until content is deleted after its retention period ends?
It is not immediate. The cleanup job runs every seven days and only processes content that has been in the Preservation Hold library for more than 30 days, so it can take up to 37 days. Content then stays recoverable in the second-stage Recycle Bin until 93 days have passed.
How many retention labels can a file have?
One. Unlike retention policies, only one retention label can apply to an item at a time.
Microsoft sources
- Learn about retention policies and retention labels
- Learn about retention for SharePoint and OneDrive
- Limits for retention policies and retention label policies
This article is part of our Microsoft Purview for SharePoint guide. Related: SharePoint sensitivity labels.
Inventory your SharePoint sites before applying retention, free
SharePoint Essentials Toolkit Community Edition is free on up to 20 sites per Microsoft 365 tenant. Report sites, owners, storage, large files and stale content so you know what you are about to retain. Get your free Community Edition license key.