Delete all Calendar events from a mailbox

Connect to O365 using powershell first

 

  1. Open PowerShell or EMS
  2. If this is an O365 mailbox, you will need to connect to the O365 environment
  3. Connect to Exchange On-line
    1. 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 

 

Then run this command in powershell:

Search-Mailbox -identity “UsersMailbox” -SearchQuery kind:meetings -DeleteContent