Skip to content

Commit 74f9cbd

Browse files
authored
Merge pull request #9370 from ninacchen/docs-editor/compliance-policy-blocking-sit-1752774487
AB#6724: Update compliance-policy-blocking-site-deletion.md
2 parents 5a12d54 + fcb631d commit 74f9cbd

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

SharePoint/SharePointOnline/sites/compliance-policy-blocking-site-deletion.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: An invalid policy blocks a SharePoint site deletion
2+
title: An Invalid Policy Blocks a SharePoint Site Deletion
33
description: Provides a fix for errors that occur when you try to delete a SharePoint or OneDrive site, or delete documents on them.
44
author: Cloud-Writer
55
ms.author: meerak
66
manager: dcscontentpm
7-
ms.date: 12/17/2023
7+
ms.date: 07/22/2025
88
audience: Admin
99
ms.topic: troubleshooting
1010
ms.custom:
@@ -36,36 +36,34 @@ You might experience one of the following scenarios.
3636

3737
> Versions of this item cannot be deleted because it is on hold or retention policy.
3838
39-
**Scenario 3:** You've excluded or removed a SharePoint or a OneDrive site from a retention policy. More than 24 hours after you make these updates, you try to delete the site or a version of a document on the site. However, the attempt is unsuccessful, and you receive one of the error messages that are mentioned in scenarios 1 and 2.
39+
**Scenario 3:** You exclude or remove a SharePoint or a OneDrive site from a retention policy. More than 24 hours after you make these updates, you try to delete the site or a version of a document on the site. However, the attempt is unsuccessful, and you receive one of the error messages that are mentioned in scenarios 1 and 2.
4040

41-
**Scenario 4:** You've excluded or removed a SharePoint or a OneDrive site from an eDiscovery hold. When you try to delete the site, the attempt is unsuccessful, and you receive the error message that is mentioned in scenario 1.
41+
**Scenario 4:** You exclude or remove a SharePoint or a OneDrive site from an eDiscovery hold. When you try to delete the site, the attempt is unsuccessful, and you receive the error message that's mentioned in scenario 1.
4242

4343
## Cause
4444

45-
Each of these error messages is generated when you try to delete a SharePoint or OneDrive site in either of the following situations:
45+
These error messages are generated when you try to delete a SharePoint or OneDrive site in either of the following situations:
4646
- You exclude or remove the site from a retention policy. However, the retention policy is invalid.
4747
- The eDiscovery hold is within a 30-day grace period that prevents the site from being deleted.
4848

4949
## Resolution
5050

51-
Verify the validity of the retention policy or determine whether the eDiscovery hold is within the grace period. To do this, run the following test in the Microsoft 365 admin center. You must have **Global** or **Compliance** administrator permissions to use these steps.
51+
Verify the validity of the retention policy or determine whether the eDiscovery hold is within the grace period. To take this action, run the following diagnostic in the Microsoft 365 admin center. You must have at least Compliance Administrator permissions to use these steps.
5252

5353
> [!NOTE]
5454
> This diagnostic isn't available for the GCC High or DoD environments, or for Microsoft 365 operated by 21Vianet.
5555
56-
1. Select the **Run Tests: Invalid Retention or grace eDiscovery Hold** button to populate the associated test in the Microsoft 365 admin center:
56+
1. Select the **Run Tests: Invalid Retention or grace eDiscovery Hold** button to populate the associated diagnostic in the Microsoft 365 admin center:
5757

5858
> [!div class="nextstepaction"]
5959
> [Run Tests: Invalid Retention or grace eDiscovery Hold](https://aka.ms/PillarInvalidRetention)
6060
61-
2. In the **Run diagnostics** section, either type or copy and paste the URL of the SharePoint or OneDrive site that you want to delete.
61+
2. In the **Run diagnostics** section, enter the URL of the SharePoint or OneDrive site that you want to delete.
6262

6363
3. Select **Run Tests**.
6464

65-
If the test finds an invalid retention policy that might be blocking the deletion, you can choose to remove the policy.
65+
If the diagnostic finds an invalid retention policy that might be blocking the deletion, you can choose to remove the policy.
6666

6767
If the test finds that the eDiscovery hold is within the 30-day grace period, you can choose to remove the hold.
6868

69-
## More information
70-
71-
To resolve the error in Scenario 4, you can use either the diagnostic or the [Invoke-HoldRemovalAction](/powershell/module/exchange/invoke-holdremovalaction) command. This command can remove eDiscovery holds that are invalid, legacy, or within the 30-day grace period.
69+
**Note**: To manage holds and resolve the error in Scenario 4, use the [Get-CaseHoldPolicy](/powershell/module/exchange/get-caseholdpolicy) command or the Microsoft Purview portal. Make sure that the location is released from the case hold policy before you try to delete the site. If the hold isn't released, use the [Set-CaseHoldPolicy](/powershell/module/exchange/set-caseholdpolicy) command to release it. If the policy can't be found by using the `Get-CaseHoldPolicy` command or the Purview portal, use the [Invoke-HoldRemovalAction](/powershell/module/exchange/invoke-holdremovalaction) command to clean up the orphan hold.

0 commit comments

Comments
 (0)