Forum Discussion
Philipp_Lutz
Dec 21, 2023Copper Contributor
Delete a specific calendar event
Hi, i want to delete a specific calendar event using PowerShell. Since the "Search-Mailbox" Cmdlet is outdated and the "Remove-Calendar" Cmdlet is only showing or deleting events in a period of tim...
VasilMichev
Dec 21, 2023MVP
You cannot, the cmdlet simply isn't designed to target individual entries. As for Search-Mailbox, it continues to work just fine, however with it you can only delete the event, not cancel it.
- Philipp_LutzDec 22, 2023Copper Contributor
VasilMichev, i can't find the Search-Mailbox cmdlet in the Exchange-Online Module. I installed the latest version of that module but it still couldn't find it. What i can find is the "Search-MailboxAuditLog" cmdlet, is this the correct one? I can find the "Test123" Event. Now how can i delete that?
- VasilMichevDec 22, 2023MVPMake sure you have the required permissions, Search-Mailbox is only available to users with the following roles assigned:
Mailbox Import Export
Mailbox Search- Philipp_LutzJan 04, 2024Copper Contributor
Thanks for the response.
I managed to get the Cmdlet working and deleted the specific event.
Unfortunately it is as you've said, this command just deletes the entry in the target-mailbox and not canceling it for the attendees.
Is it somehow possible to cancel a specific event?