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 http://technet.microsoft.com/en-us/library/dd298173.aspx for further search based queries on mailboxes.

http://stevehardie.com/2012/05/exchange-2010-purge-dumpster/

 

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).

SeeĀ http://technet.microsoft.com/en-us/library/gg181092.aspx

 

Dumpster size:

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

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s