Remove queue message by email address.
Command:
Remove-Message -server COMPUTERNAME -Filter “FromAddress -eq ‘[email protected]” -WithNDR $false
Remove queue message by email subject.
Command:
Remove-Message -Server COMPUTERNAME -Filter {Subject -like “XXXXXX”} -WithNDR $false