Purge mailboxes

Purging Unwanted Messages from Exchange Online Mailboxes

by Tony Redmond

Microsoft will remove the Search-Mailbox cmdlet from Exchange Online on July 1, but that doesn't mean you can't purge bad messages from user mailboxes. Office 365 content searches and content search actions can hard- or soft-delete messages. Some limitations exist, but not enough to be worried. And we include a PowerShell script to show how to get the job done.