Delete emails from specific sender in one users mailbox
1. Connect to Exchange On-line
- From the PowerShell console on an Exchange 2010 server:
$Cred = Get-Credential
$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic –AllowRedirection
Import-PSSession $s
- Run this command in Powershell
Search-Mailbox -identity “User Mailbox” -SearchQuery “From:user@domain.com” -deletecontent