logo
search
Compliance Problems

Fix Cannot Delete a SharePoint Site Because of a Compliance Policy

Olivia MillerOlivia Miller Oct 12, 2026 869 views

Question details

A SharePoint site owner or administrator needs to delete a SharePoint site but is blocked by an organizational compliance or retention policy.

How to Fix Cannot Delete a SharePoint Site Because of a Compliance Policy
Product
Microsoft SharePoint
Device & OS
not provided
Scenario
Attempting to delete an obsolete or unused SharePoint site collection.
Observed behavior
An error message is displayed stating that a compliance policy is blocking the deletion, despite the user having full administrative privileges.
Before you start

Ensure you have access to the Microsoft 365 admin center and sufficient compliance administrator privileges to modify Microsoft Purview retention policies. Consult with your organization's legal or compliance department before modifying any data retention rules.

Solution 1Recommended

Exclude the SharePoint Site from the Retention Policy

Use the Microsoft Purview portal to identify and exclude the specific SharePoint site from the organizational retention policy that is blocking its deletion.

Organizational retention policies are designed to preserve data for compliance purposes. When a SharePoint site is included in one of these policies, Microsoft 365 locks the site to prevent its deletion. You must exclude the site from the policy before it can be removed.

1
Sign in to the Admin Center

Go to the Microsoft 365 admin center (admin.microsoft.com) and sign in using your global administrator or compliance administrator credentials.

2
Access Microsoft Purview

Navigate to the Compliance or Microsoft Purview portal from the admin center dashboard by clicking on 'Compliance' in the left navigation menu.

3
Locate Retention Policies

In the Microsoft Purview portal, click on 'Policies' in the left-hand navigation pane, and then select 'Retention'.

4
Edit SharePoint Locations

Find the specific retention policy that applies to SharePoint sites. Click on the policy to edit it, navigate to the locations section, and explicitly exclude the URL of the site collection you want to delete.

5
Wait and Retry Deletion

Save your changes to the policy. Wait for the policy status to update across the tenant, then return to the SharePoint admin center to try deleting the site again.

Propagation Time: Changes to Microsoft 365 retention policies are not instantaneous. It typically takes between 10 to 60 minutes for the exclusion to take effect before the site can be successfully deleted.
Free Microsoft Office alternative

Try WPS Office as a Lightweight Alternative for Document Collaboration

While you manage your organization's SharePoint site compliance policies, consider WPS Office for your daily document creation and sharing needs. It is a highly compatible, free alternative to Microsoft Office that is lightweight and easy to deploy across your team.

  1. 1. Download and Install: Visit the official WPS website to download the free installation package tailored for your operating system.
  2. 2. Open Existing Documents: Launch WPS Office and seamlessly open your existing Microsoft Office files without losing formatting or data.
  3. 3. Collaborate and Save: Edit your documents and save them locally or directly to your preferred cloud storage, maintaining full compatibility with Microsoft Office users.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats (.docx, .xlsx, .pptx).Lightweight installation that consumes minimal system resources compared to traditional enterprise suites.Free to download with a highly intuitive user interface that reduces the learning curve for teams.Built-in PDF editing tools for secure and efficient document management.
microsoft office alternative - wps office

Frequently Asked Questions

Why does a retention policy prevent me from deleting a SharePoint site?

Retention policies are implemented to comply with legal and industry regulations by preserving electronic data for a specific period. When a site is covered by such a policy, Microsoft 365 locks the site to prevent the accidental or malicious deletion of vital compliance records.

How long does it take for a retention policy change to apply?

After modifying a retention policy to exclude a SharePoint site in the Microsoft Purview portal, it generally takes between 10 to 60 minutes for the updated policy to propagate through the Microsoft 365 environment. You must wait for this process to finish before attempting deletion again.

Can a site owner bypass the compliance policy to delete the site?

No. Even if you have full site owner or site collection administrator privileges, you cannot bypass a tenant-level retention policy. Only a global administrator or compliance administrator has the authorization to modify the policy in the Microsoft Purview portal.

What happens to the site data once the retention policy is removed and the site is successfully deleted?

Once the retention policy exclusion takes effect and the site is deleted, it is moved to the SharePoint recycle bin. It will remain there for 93 days, during which an administrator can restore it if necessary, before it is permanently destroyed.