Forum Discussion

piroyuuuki's avatar
piroyuuuki
Copper Contributor
Mar 06, 2021

How to remove cancel schedule from calendar automatically

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

 

Remove-CalendarEvents

      [-Identity] <MailboxIdParameter>

      [-CancelOrganizedMeetings]

  • MDadarkar's avatar
    MDadarkar
    Brass Contributor
    Hi,

    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,

    Regards,
    MD

Resources