Remove calendar events from all mailboxes (o365)

Shaun Okeefe CITP
Shaun Okeefe CITP used Ask the Experts™
on
Hi All,

So we’ve got ourselves into an issue where several members of staff have hundreds of re-occurring events / meetings set-up in their Calendars from staff who no longer work for the business and have no mailbox / account.

I’ve tried to use commands such as Remove-CalendarEvents with the -CancelOrganizedMeetings flag but after checking they still have hundreds of reoccurring Events.

Is there a way I can run a command across ALL mailboxes across our tenant to delete any calendar events / meetings / entries from certain people (even if they have left?)

Cheers,
Shaun
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Exchange Engineer
Distinguished Expert 2018
Commented:
This is a challenging task since these are calendar meetings. See the below link for assist on this and an example cmdlet syntax to assist, but you will need to get subject lines and so forth to narrow down you search.

https://social.technet.microsoft.com/Forums/ie/en-US/f05aa1c7-6f07-4a73-9c10-8a29386a450f/delete-calendar-item-from-all-mailboxes?forum=Exch2016PS
FOXActive Directory/Exchange Engineer
Top Expert 2015
Commented:
Try the below(powershell connected to o365)-

Get-Mailbox -ResultSize unlimited | Search-Mailbox -SearchQuery 'kind:meetings and From:"emailaddressofsender"' -DeleteContent

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial