How to Fix – A compliance policy is currently blocking this site deletion in SharePoint

Yesterday, I attempted to delete some of my unnecessary SharePoint sites from the SharePoint Admin Centre. However, some of them were not deleted when I tried to delete them. Instead of that, an error came saying that “A compliance policy is currently blocking this site deletion“, as shown below:

A compliance policy is currently blocking this site deletion

I then researched the issue and discovered that it was being blocked because my manager had created a SharePoint Retention policy within the Microsoft Purview portal.

In this article, I will tell you how to fix the “A compliance policy is currently blocking this site deletion” in SharePoint error step by step.

A compliance policy is currently blocking this site deletion

To fix this issue, we can review and remove any retention policies applied in the Microsoft Purview Center. If needed, we can also disable the specific retention policy that’s causing the problem.

Follow the instructions below to achieve this:

  1. Navigate to the Microsoft Purview Home page, then select Solutions > Data Lifecycle Management.
A compliance policy is currently blocking this site deletion SharePoint
  1. Expand Policies > Select Retention policies.
A compliance policy is blocking this site deletion SharePoint
  1. On the Retention policies page, select the specific policy name. There will be two options:
    • Delete: It helps to delete the particular retention policy permanently.
    • Disable policy: It helps to disable the retention policy, so that at a later point in time, you can use it if required.

In my case, I will disable the policy.

How to fix A compliance policy is blocking this site deletion SharePoint
  1. After a few seconds, you can see the specific policy has been disabled.
Fix A compliance policy is blocking this site deletion SharePoint
  1. You can view the retention policy status by clicking on it.
Fix A compliance policy is blocking this site deletion in SharePoint

Finally, go to the SharePoint Admin Center and try deleting a specific SharePoint site. You’ll notice that the Delete button is now enabled, and the site will be deleted once you click it.

Reference:

A compliance policy is blocking this current site deletion in SharePoint

This way, we can resolve the SharePoint error “A compliance policy is currently blocking this site deletion” that appears when attempting to delete any site from the SharePoint Admin Centre.

Also, you may like some more SharePoint tutorials:

Power Apps functions free pdf

30 Power Apps Functions

This free guide walks you through the 30 most-used Power Apps functions with real business examples, exact syntax, and results you can see.

Download User registration canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App