How to cleanup Recoverable item folder from a mailbox ?

 Cleanup Recoverable Item Folder

                   The mails are deleted from inbox or other folder moves to deleted items then based on your organization retention policy it would be moved to Recoverable item folder.

                    In this folder the deleted mails will be available for next 14 days, post that the mails will be deleted permanently. In some cases if the mailbox is enabled for litigation hold or legal hold those mail available in the recoverable folder won't  delete after 14 days.

Below is the flow of the Process,


                    Recoverable item folder is limited for each mailbox based on the subscription(office 365). (Ex:- if your user account has 50GB of mailbox Storage, the recoverable items folder also have 50 GB of Storage).

                    Once the recoverable item reached it's limit you can't delete mails from deleted folder. In that case you may have first cleanup the recoverable item folder.

                      We usually call it as dumpster cleaning this can be done through Exchange PowerShell only. In this article you will get to know how to clear Dumpster of a mailbox and how to Cleanup Purge folders items from the recoverable items.

Clean Dumpster of a mailbox:-

Step :- 1 

Install "Exchange online PowerShell Module" in your system.

Step :- 2

To connect exchange via PowerShell use the below cmdlet.

Connect-EXOPSSession 

Step :- 3

Provide your "Exchange admin Credential". It will connect to exchange online.

Step :- 4  

Check the Recoverable Folder Size and item count of the Mailbox by using below cmdlet.

Get-Mailbox -identity UPN | fl Recoverable* --> To Know Recoverable item Quota

Get-MailboxFolderStatistics -Identity UPN -FolderScope Recoverableitems | ft --> To know Size utilized and count of emails in the folder.

Step :- 5

To clean the mails in the recoverable items folders run the below cmdlet (Dumpster Cleanup).

Search-Mailbox -identity EmailAddress -SearchDumpsterOnly -DeleteContent -Force

This cmdlet will start clean the recoverable item folder without asking Confirmation. If you need confirmation to be prompted remove -Force from the cmdlet.

Step :- 6 

Don't Disturb the existing PowerShell window, Open new PowerShell window and check the status often to verify the cleanup process by using the below cmdlet.

Get-MailboxFolderStatistics -Identity UPN -FolderScope Recoverableitems | ft

Step :- 7

             If incase the Recoverable items folder size not reducing and the mails are moved from one folder to another folder (Purged) with in the recoverable items.  

Follow the below Instructions

Cleanup Purge folder items from the recoverable items:

Step :-  1

Stop the Above cmdlet process by Pressing "CTRL+C".

Step :-  2

First check the mailbox is SingleItemRecoveryEnabled is False or True. This kind of "Secondary Recycle Bin" used to avoid the mails permanently get deleted from a user mailbox.

Get-Mailbox -Identity Mahesh@alo365.onmicrosoft.com |fl *Single*

If it's Enabled, the mails won't be deleted permanently from the recoverable items, instead it will stored in Purged Folder.

Step :- 3

Run the below cmdlet to disable the SingleItemRecovery.

Set-Mailbox -Identity EmailAddress -SingleItemRecoveryEnabled $False

Step :- 4

It May take up to 4 hours to take effect, post run the "Dumpster cleanup" cmdlet. This time recoverable items folders will be cleaned completely.

This is applicable for on-prem and hybrid mailbox also..

Hope this help you!!!

Comments

Popular posts from this blog

How to fix the calendar free/busy or calendar sharing issue?

How to Cleanup your M365 or AzureAD Guest Users account ?