Delete Content

To delete all contents of mailbox:

Search-Mailbox -Identity DOMAIN\Username -DeleteContent

To delete dumpster content only:

Search-Mailbox -Identity DOMAIN\Username -SearchDumpsterOnly -DeleteContent

See for further search based queries on mailboxes.


To permanently delete a disconnected mailbox:

Remove-StoreMailbox -Database "database name" -Identity "Joe Bloggs" -MailboxState <State>

<State> = Disabled (when user object is deleted) or SoftDeleted (when user object still exists).



Dumpster size:

Get-Mailbox | Get-MailboxStatistics | select DisplayName, TotalDeletedItemSize

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s