Forum Discussion
M365 Exchange - delete Calendar entries
Maybe a simple question, but struggle to find a way to do it
I have a 365 admin account for our m365 tenent and running exchange online.
A user has left and people struggle to cancel some meetings the person who has left has invited for. I hoped that I just could run some powershell script that silently would cancel all meetings that person has made. But struggle to find a way
Anyone has some input on how to do this ? - and as mention I have exchange admin rights.
1 Reply
There's a built-in cmdlet for that: https://learn.microsoft.com/en-us/powershell/module/exchangepowershell/remove-calendarevents?view=exchange-ps
The important bit is that the account must still exist. If that's not the case, you cannot really cancel the meetings, best you can do is remove any instances of them. I have a sample script that does just that here: https://michev.info/blog/post/6300/how-to-remove-meetings-from-all-microsoft-365-mailboxes-via-the-graph-api