How to remove Delayhold and Delayreleasehold for all my mailboxes

Pratik Shetty 66 Reputation points

We have delayhold and delayreleasehold applied in our environment. Is there a way to remove across my entire environment from all my mailboxes ?

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,335 questions
0 comments No comments
{count} vote

Accepted answer
  1. Aholic Liang-MSFT 13,741 Reputation points Microsoft Vendor

    Hi anonymous user ,
    According to the official documentation ,applying delay hold means that the actual deletion of the hold is delayed by 30 days to prevent data from being permanently deleted (purged) from the mailbox.



    However,you could remove DelayHoldApplied or DelayReleaseHoldApplied before it expires through Exchange Online PowerShell.

    You could refer to the following command to get if all mailboxes has the DelayHoldApplied or DelayReleaseHoldApplied .

    Get-Mailbox -ResultSize Unlimited | FL identity,*HoldApplied*  

    And then you could run one (or both) the following commands to remove the delay hold, depending on which property you want to change:

    Set-Mailbox <username> -RemoveDelayHoldApplied  


    Set-Mailbox <username> -RemoveDelayReleaseHoldApplied  

    If you want to remove them all at once from all mailboxes, you could refer to running one or both of the following commands:

    Get-Mailbox -ResultSize Unlimited | Set-Mailbox  -RemoveDelayHoldApplied  


    Get-Mailbox -ResultSize Unlimited | Set-Mailbox  - RemoveDelayReleaseHoldApplied   

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful