Recall / Delete a message sent to all the users by mistake – O365

First of all Open Azure PowerShell with Admin Privileges
Connect to O365 (Run the command mentioned below – Input O365 Global Admin Credentials)Import-Module MSOnline
$O365Cred = Get-Credential

$O365Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $O365Cred -Authentication Basic -AllowRedirection
Import-PSSession $O365Session -AllowClobber
Connect-MsolService -Credential $O365Cred

Run the following command to delete the message :

Get-Mailbox |Search-Mailbox -SearchQuery ‘Subject:”Type the subject of the message”‘ -DeleteContent

Confirm the deletion , Either one by One or Typing A for all

It will take some time as it will go through all the mailboxes to find the mentioned subject email.

https://support.office.com/en-us/article/Recall-and-replace-sent-messages-ec29964f-ae72-4e32-bbab-945fe3dc3390?CorrelationId=5019f4ff-8ae0-499f-91bd-61d2f63dc911&ui=en-US&rs=en-US&ad=US&ocmsassetID=RZ103709941

Download Remote Control Software : www.wingagaarbin.com

Leave a Reply

Your email address will not be published. Required fields are marked *