Exclude or remove sites from a SharePoint Online retention policy
This article describes how to exclude or remove a website from a retention policy.
- You must have the necessary permissions in the Compliance Admin center to do this. See Permissions in the Microsoft Purview compliance portal and Microsoft 365 security center.
- The steps in this article apply to SharePoint sites, OneDrive storage sites, and Microsoft 365 groups locations.
- Changes to the retention policy might take up to 24 hours to take effect.
If the retention policy applies to all sites, you can exclude a site from the retention policy, but not remove it. If the retention policy applies to selected sites, you can remove the site, but not exclude it.
Edit the retention policy
Go to the Microsoft Purview compliance portal.
Select Data lifecycle management > Microsoft 365 > Retention Policies. You'll be shown all the retention policies that are configured in your tenant.
Select the policy that you want to edit, and then select Edit Policy.
In the Edit Retention Policy window, navigate to Locations Applied, and then select Let me choose specific locations if it is not already selected.
Next to SharePoint Sites, select Exclude sites. Then, go to the next steps (Exclude a site from the retention policy).
Note: If Exclude sites is not available (grayed out), this means that the retention policy applies to a specific site. In this case, go to the Remove a SharePoint site from the retention policy section.
Exclude a site from the retention policy
Select Exclude Sites.
Enter the URL of the site that you want to exclude, and then select the plus (+) button.
Select the check box for the site. You can add other sites, if you want.
After you enter all the sites that you want to exclude, select Exclude at the bottom of the window to confirm the changes.
Remove a SharePoint site from the retention policy
Next to SharePoint Sites, select Choose sites.
Select the "X" character for the site URL that you want to remove from the policy.
Select Done > Save.