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