How to remove cancel schedule from calendar automatically

Copper Contributor

Please tell me  how to remove cancel schedule from calendar automatically.

I want to program the following script by ExchangePowerShell.


When schedule is cancelled , then execute the following code



      [-Identity] <MailboxIdParameter>


1 Reply

Please execute the below commands

Microsoft has some kind of limitations in Remove-CalendarEvents command

Please follow the below steps to delete unwanted Appointments

Open Powershell with Admin and run the below commands

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn;

Search-Mailbox -identity “MailboxAlias” -SearchQuery subject:”Name of the Meeting” -DeleteContent

Thank you,