Share via


PowerTip: Removing calendar events from a mailbox

Summary: Remove calendar events within an Exchange online mailbox. (Re-post from a Hey Scripting Guy's blog post.)

Q:  Is there an effortless way to remove calendar events from within an Exchange online mailbox?

A:  Yes there is. There is a newly deployed cmdlet Remove-CalendarEvents to O365 tenants: https://technet.microsoft.com/en-us/library/mt784593(v=exchg.160).aspx. This cmdlet is only available in Exchange online currently, but allows administrators to remove calendar events, with an attendee, from an owner’s mailbox.

 

Example 1

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

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

 

Example 2

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 "Angela Gruber" -CancelOrganizedMeetings -QueryStartDate 11-1-2018 -QueryWindowInDays 120

 

Example 3

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.

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