This site has a compliance policy set to block deletion

Михаил Макеев 26 Reputation points
2020-12-02T20:39:28.373+00:00

Hello.
I can't delete a Group in the Sharepoint admin centre.
Group is created in Stream.
When I try to delete I get an alert:"This site has a compliance policy set to block deletion."

DLP policies are empty.
https://compliance.microsoft.com/datalossprevention?viewid=policies

Retention policies:
https://compliance.microsoft.com/informationgovernance?viewid=retention
I have two policies which are disabled and all status buttons inside these policies are switched off.

Other groups (which are created from Teams) also cant be deleted.
Group is deleted from aad.portal.azure.com and from office365 groups.

I have found that this alert appears on Groups which have Primary Admin - Group owners.
That groups which have Primary Admin me or certain account do not show this alert.
My account is a Global Administrator, but I can't do this simple deletion.
44485-shp1.jpg
44541-shp2.jpg

Please help

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. Chelsea Wu 6,341 Reputation points Moderator
    2020-12-03T03:09:34.943+00:00

    Hi @Михаил Макеев , thank you for posting in the Q&A forum.

    Please check the status of the retention policies via Microsoft 365 compliance > Policies > Data > Retention: https://compliance.microsoft.com/informationgovernance?viewid=retention.

    The warning message “This site has a compliance policy set to block deletion” suggests that you have a retention policy for the Office 365 group connected site currently activated or has not been turned off successfully.
    In this scenario, the site cannot be deleted from SharePoint Admin Center even by the creator himself.

    44595-screenshot-2020-12-03-102036.png

    Please note that it might take up to 24 hours for the change to take effect in your tenant, including creating a new policy, editing the policy settings, enabling or disabling the policy.

    Also, even with the policy enabled, the group can be deleted from Azure portal and sent straight to the Deleted groups, but the site will remain in the current status until the policy gets turned off successfully. Then the system will do the rest of the work and delete the site for you.

    Please wait for one day and see the result.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    **Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. **

    2 people found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Михаил Макеев 26 Reputation points
    2020-12-04T18:11:43.437+00:00

    @Chelsea Wu Thank you for your quick and enhanced answer.
    Currently, I have deleted all policies from Retention tab. But still deletion is not available. But from Azure group is deleted.
    Will be waiting for a couple of days.

    45245-image.png

    0 comments No comments

  2. Михаил Макеев 26 Reputation points
    2020-12-08T16:57:21.857+00:00

    Hello,
    The problem is still the same. Nothing changed. I don't know where to look for the reason.


  3. Jean Desnoyers 1 Reputation point
    2021-04-09T13:31:00.187+00:00

    @Михаил Макеев I have the same problem what was to resolution to the problem ?


  4. Torben-A 0 Reputation points
    2024-03-15T11:02:17.6266667+00:00

    For anyone landing here in the future:
    https://learn.microsoft.com/en-us/sharepoint/troubleshoot/sites/compliance-policy-blocking-site-deletion

    There is a self help solution with the M365 Admin Center to remove invalid compliance policies. Search for "Diag: Invalid retention policy for SharePoint or OneDrive" after clicking on Help and Support in the support menu of the M365 Admin Center.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.