Cannot remove a retention policy

%3CLINGO-SUB%20id%3D%22lingo-sub-1584189%22%20slang%3D%22fr-FR%22%3ECannot%20remove%20a%20retention%20policy%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1584189%22%20slang%3D%22fr-FR%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20created%20a%20retention%20Label%20%22Label%203%22%20and%20published%20it%20as%20%22Label%203%20Policy%22.%20Now%20I%20want%20to%20remove%20this%20policy.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20try%20to%20remove%20it%20from%20the%20portal%20from%20the%20delete%20button%2C%20it%20is%20not%20deleted%20without%20any%20error%20in%20the%20UI.%20When%20I%20try%20to%20remove%20it%20from%20the%20remove-retentioncompliancepolicy%20I%20get%20the%20error%20below.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20I%20resolve%20this%20error%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF0000%22%3EThe%20%22Label%203%20Policy%22%20cannot%20be%20removed%20because%20it%20does%20not%20have%20the%20state%20waiting%20to%20be%20deleted.%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%230000FF%22%3E%3CEM%3E(Translation%20to%20english%20could%20be%20%22Cannot%20remove%20the%20%22Label%203%20Policy%22%2C%20it%20is%20in%20not%20a%20pending%20deletion%20state)%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF0000%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20CategoryInfo%3A%20InvalidOperation%3A%20(%3A)%20%5BRemove-RetentionCompliancePolicy%5D%2C%20ValidationException%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF0000%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20FullyQualifiedErrorId%3A%20%5BServer-BN8NAM11WS021%2CRequestId-eae45e63-7645-4b68-841c-d3ebe06fe7e2%2CTimeStamp-8%2F12%2F2020%2012%3A03%3A11%20PM%5D%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF0000%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B8DC931D%2CMicrosoft.Office.CompliancePolicy.Tasks.RemoveRetentionCompliancePolicy%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF0000%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PSComputerName%3A%20nam11b.ps.compliance.protection.outlook.com%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1584330%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20remove%20a%20retention%20policy%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1584330%22%20slang%3D%22en-US%22%3E%3CP%3ECould%20it%20be%20due%20to%20the%20distribution%20status%20of%20the%20policy%20which%20is%20in%20a%20pending%20state%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1584820%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20remove%20a%20retention%20policy%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1584820%22%20slang%3D%22en-US%22%3E%3CP%3EYup%2C%20it%20can%20take%20some%20time...%20days%20in%20some%20cases%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

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

2 Replies

Could it be due to the distribution status of the policy which is in a pending state?

 

Yup, it can take some time... days in some cases :)