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 -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.

Download Remote Control Software :

Leave a Reply

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