Forum Discussion

Mani333's avatar
Mani333
Copper Contributor
Oct 18, 2024

Remove-Mailbox '1293f525-fbb5-45fd-8323-57902d7a2e46' -PermanentlyDelete,

Hello Every one,

When i try to run the command Remove-Mailbox '1293f525-fbb5-45fd-8323-57902d7a2e46' -PermanentlyDelete,

I'm getting the below error can someone suggest me how to remove the holds.

Please remove the holds before trying to delete. LitigationHoldEnabled: false, ComplianceTagHoldApplied: false, DelayHoldApplied: false, DelayReleaseHoldApplied:false, OrganizationPolicies Applied: , UserPolicies Applied: 3abe9c69-c180-44aa-9bc2-77c6140ca253,afa22c3f-619c-472a-b62b-5b0b848532ae, restrictivePolicies Applied: , CpsInfo: .

 

Can someone suggest me how to hard delete this one

  • As the error message tells you - you need to remove any holds applying to the mailbox. In this case, you seem to have at least few Retention policies, so exclude the mailbox from them.
    • Mani333's avatar
      Mani333
      Copper Contributor

      VasilMichev 

      Thanks for your reply

      I tried this command 

      Set-Mailbox -Identity softdeleteguid -ExcludeFromAllOrgHolds

      But still getting the same error.

      Could you suggest me the command.

      • It's not an org-wide retention policy. Open the Purview portal, go to Data governance > Retention and locate the policies therein.

Resources