June 24, 2026 Stories worth reading. Perspectives worth sharing.
Office365 | M365

Deleting contents of a mailbox

mo wasay January 21, 2016 1 min read

So came across an account that had 450000 items that were log files that were being captured in a mailbox. I wanted to delete all the enteries with powershell instead of going through the GUI.

Here the command I used to get it done:

Search-mailbox -Identity [email protected] -DeleteContent -Force