Aug 12 2020 05:11 AM
Hi,
I created a retention Label "Label 3" and published it as "Label 3 Policy". Now I want to remove this policy.
When I try to remove it from the portal from the delete button, it is not deleted without any error in the UI. When I try to remove it from the remove-retentioncompliancepolicy I get the error below.
How can I resolve this error?
Impossible de supprimer la stratégie « Label 3 Policy », car elle n’a pas l’état en attente de suppression.
(Translation to english could be "Cannot remove the "Label 3 Policy", it is in not un a pending deletion state)
+ CategoryInfo : InvalidOperation : (:) [Remove-RetentionCompliancePolicy], ValidationException
+ FullyQualifiedErrorId : [Server=BN8NAM11WS021,RequestId=eae45e63-7645-4b68-841c-d3ebe06fe7e2,TimeStamp=8/12/2020 12:03:11 PM]
[FailureCategory=Cmdlet-ValidationException] 8DC931D,Microsoft.Office.CompliancePolicy.Tasks.RemoveRetentionCompliancePolicy
+ PSComputerName : nam11b.ps.compliance.protection.outlook.com
Aug 12 2020 06:31 AM
Could it be due to the distribution status of the policy which is in a pending state?
Aug 12 2020 09:22 AM
Yup, it can take some time... days in some cases 🙂