August 31st, 2017

PowerTip: Remove calendar events from a mailbox

Doctor Scripto
Scripter

Summary: Remove calendar events within an Exchange Online mailbox.

    Is there an easy way to remove calendar events from within an Exchange Online mailbox?

        Yes there is. There is a newly deployed cmdlet to Office 365 tenants: Remove-CalendarEvents. This cmdlet is currently only available in Exchange Online, but it does allow administrators to remove calendar events, with an attendee, from an owner’s mailbox. Here are three examples:

Remove-CalendarEvents -Identity chris@contoso.com -CancelOrganizedMeetings

This example cancels every meeting in the mailbox chris@contoso.com that occurs on or after today’s date.

Remove-CalendarEvents -Identity “Angela Gruber” -CancelOrganizedMeetings -QueryStartDate     11-1-2018 -QueryWindowInDays 120

This example cancels the meetings in Angela Gruber’s calendar for the specified date range. Angela is taking a temporary leave of absence from the company, so cancelling these meetings removes them from the user and resource calendars during her absence.

Remove-CalendarEvents -Identity “Jacob Berger” -CancelOrganizedMeetings -QueryStartDate 9-1-2018 -QueryWindowInDays 90 -PreviewOnly -Verbose

This example previews the meetings that would be cancelled in Jacob Berger’s calendar for the specified date range. No changes are made to the mailbox.

The Doctor

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.