In this Article, Will show you how to clear Dumpster for the mailboxes. which is majorly help you when you are doing mailbox moving from O365 to On-Premises and vise versa. Let’s begin,
Run the below command to see the size of the Dumpster(Deletions) Folder size which is storing the deleted items of mailbox which is not visible to users but administrators can see by using Exchange PowerShell,
Get-MailboxFolderStatistics Radhakrishnan.firstname.lastname@example.org |ft name,foldersize –AutoSize
If you see the Deletions, It is showing 19.85 GB data is there in the folder, run the below command to clear it..
Get-mailbox Radhakrishnan.email@example.com | search-mailbox -searchquery “Subject:’*'” -DeleteContent –SearchDumpsterOnly
Press A to continue and wait for some time,
Now it is cleared as it is showing only 45.84 KB of Deletions folder size.