Remove Reoccuring meeting invite
There are situations when an organizer wants to cancel a meeting invite, but not able to delete and invite re-appears in attendees calendars, and we may need to remove the invite from backend.
It becomes extremely important to examine the results before deleting them to make sure you have targeted the correct meeting invite or email.
If you want to search all the mailboxes for specific meeting, use below command. This command will give you estimated results only and will not delete anything from the mailboxes.
Get-Mailbox | Search-Mailbox -SearchQuery "kind:meetings AND Subject:'Bi Weekly IT Review Meeting' AND From:User@domain.com" -EstimateResultOnly
If you want to search a set of mailboxes, you can copy the PrimarySMTP addresses in a list and use the command like below.
The below command will export all the specified meeting invite from all mentioned mailboxes to a target folder in a target mailbox.
This command will also not delete anything from mailbox, once results are exported you can review the results and make sure you are targeting the correct meeting invite or email.
Get-Content C:\Temp\List.txt | Get-Mailbox | Search-Mailbox -SearchQuery "kind:meetings AND Subject:'Bi Weekly IT Review Meeting' AND From:User@domain.com" -TargetMailbox ExportResult@Domian.com -TargetFolder "ExportResult"
Once you are sure that correct meeting invite or email will be deleted, you can run the delete command to remove the meeting.
Search-Mailbox -SearchQuery '(subject:"Bi Weekly IT Review Meeting") AND (kind:meetings) and from:User@domain.com' -DeleteContent -Loglevel Full -TargetMailbox ExportResult@Domian.com -TargetFolder "ExportResult"
On the target mailbox, you can download the logs to see all the actions.