top of page

How to Clear Mailbox Dumpster using PowerShell

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.g@windowstechpro.com |ft name,foldersize –AutoSize


1

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.g@windowstechpro.com | search-mailbox -searchquery “Subject:’*'” -DeleteContent –SearchDumpsterOnly


2

Press A to continue and wait for some time,


3

Once Completed, Run the below command once again, Get-MailboxFolderStatistics Radhakrishnan.g@windowstechpro.com |ft name,foldersize –AutoSize

4

Now it is cleared as it is showing only 45.84 KB of Deletions folder size.


5

WOOT.. You have done the job. Will cover what is Purges and Versions in the Upcoming  Articles..

24 views0 comments
bottom of page