Clearing Exchange online mailbox purge, dumpster folder

Clearing mailbox purge folder

What to do when you have a Exchange plan2 licensed user under litigation hold going over the maximum mailbox quota of 100GB. Try to find out the mailbox folder statistics, disable litigation and run the commands to clear the contents of purge folder.

Get-MailboxFolderStatistics -Identity "useralias@domain.com" | Select name,Foldersize,itemsinFolder

  • Enter any of the following command to clear the purge folder.

1) Set-Mailbox –identity useralias@domain.com -LitigationHoldEnabled $False
Disables litigation hold set on the user mailbox
2) Set-Mailbox –identity useralias@domain.com -RetainDeletedItemsFor 1:00:00:00
Sets retain deleted items to 1 day
3) Set-mailbox –identity useralias@domain.com –RemoveDelayHoldApplied
Removes the delay hold which is used to prevent accidental deletions, which may delay
4) Start-ManagedFolderAssistant -Identity useralias@domain.com –HoldCleanup
clean up duplicate versions of items in the Recoverable Items folder
5) Start-ManagedFolderAssistant -Identity useralias@domain.com –AggMailboxCleanup
Used by Microsoft internal by refers to mailbox cleanup by MRM
6) Start-ManagedFolderAssistant -Identity useralias@domain.com start messaging records management (MRM) processing of mailboxes that you specify
7) Search-Mailbox -Identity useralias@domain.com -SearchDumpsterOnly -DeleteContent
Delete emails from dumpster

  • Run below after clearing mailbox purge folder:
1) Set-Mailbox useralias@domain.com -RetainDeletedItemsFor 14:00:00:00
Sets retain deleted items back to 14 day
2) Set-Mailbox useralias@domain.com -LitigationHoldEnabled $True
Enables litigation hold set on the user mailbox


Comments

Popular posts from this blog

create AD contacts, Bulk create AD contacts - Active Directory PowerShell

Add description to AD contact and bulk add description for contacts - Active Directory PowerShell