How to: Fix”This site has a compliance policy set to block deletion.” “A compliance policy is currently blocking this site deletion” Error for Office 365/SharePoint

Last Updated on

The Error

This site has a compliance policy set to block deletion.

Office 365, SharePoint This site has a compliance policy set to block deletion.
Office 365, SharePoint This site has a compliance policy set to block deletion.

Can’t delete site
A compliance policy is currently blocking this site deletion

Office 365, SharePoint A compliance policy is currently blocking this site deletion
Office 365, SharePoint A compliance policy is currently blocking this site deletion

The Fix

Note: Usually this indicates that the retention policy is enabled for this site which we want to delete

1 Delete the Group from Microsoft 365 admin center

2 We also need to delete the group from “Deleted groups” from “Azure Active Directory admin center

Give it one or two days.

If the site is still in “SharePoint admin center” -> “Active sites” we can try to disable “Retention Policy” for awhile

Warning: Before go ahead and disabling Retention Policy, make sure you understand the risks and what you are doing.

3 Navigate to Office 365 Security & Compliance -> Information governance -> Retention

4 Find the Retention Policy which covers the SharePoint site, disable it

Wait 10 minutes to 1 hour, go back to to “SharePoint admin center” and check “Active sites” and “Deleted sites”, the site should end up in the “Deleted sites”

Do not forget to enable “Retention Policy” again for the SharePoint Site!


Leave a Reply

Your email address will not be published. Required fields are marked *