Dec 21 2023 03:28 AM - edited Dec 22 2023 01:54 AM
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 time, i don't know how i am able to delete one specific calendar item.
For example:
Someone organized meetings on friday where one is called "Test123" and if i put the command in:
Remove-CalendarEvents -Identity "email address removed for privacy reasons" -CancelOrganizedMeetings -QueryStartDate 21.12.2023 -QueryWindowInDays 3 -PreviewOnly -Verbose
I even get the SubjectProperty with "Test123" and the other meetings, now i want to delete just the "Test123".
Is it possible somehow?
Thanks in advance!
Dec 21 2023 08:51 AM
Dec 22 2023 01:31 AM
@Vasil Michev, 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?
Dec 22 2023 07:48 AM
Jan 04 2024 06:35 AM
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?