Categories
How-To Technical

Exchange 2013 – Delete all contents from mailbox

Using the following Exchange Management Shell command you can cleanup emails from a mailbox such as one used to catch spam emails:

Search-Mailbox -Identity "<mailbox_name>" -DeleteContent -Force

You can also check the number of items in the mailbox by issues the following command:

​Get-MailboxFolderStatistics <mailbox_name> | Select Identity, ItemsInFolder

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.