How to delete emails from Mailbox using Exchange PowerShell
Go to Exchange Management Shell
Use following Command
How to delete emails by Subject line
Search-Mailbox -Identity "Test@123.com"
-SearchQuery 'Subject:"Your Subject"' –DeleteContent
Confirm with Yes
In status PS will show you result count and Size of total
deletion
How to delete emails by from
In status PS will show you result count and Size of total
deletion
Search-Mailbox -Identity "Test@123.com"
-SearchQuery 'Subject:"123@ABC.com"' –DeleteContent
You also can delete all email from specific @domain from
identified mailbox (Your Mailbox) by putting @Domain.com only
Comments
Post a Comment