delete calendar invite.

Roger Roger 6,086 Reputation points
2024-08-07T21:05:19.8233333+00:00

Hi all,

I am using exchange 2016 hybrid environment. i have room mailbox in exchange online. I want to remove calendar reservations from this room mailbox. I only have the meeting subject name and do not have any information about the sender or recipients. Let's say the RoomAlias is room1@contoso.com and the subject is xyzmeeting. How can I delete this invite? I am not sure if it is a recurring meeting invite. please guide me.

Microsoft Exchange Online
Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,292 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,519 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,626 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,097 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jake Zhang-MSFT 5,670 Reputation points Microsoft Vendor
    2024-08-08T02:53:16.3066667+00:00

    Hi @Roger Roger,

    Welcome to the Microsoft Q&A platform!

    According to your description, to remove calendar reservations from a room mailbox in Exchange Online, you can use PowerShell to search for and remove the meeting based on the subject. Since you are not sure if it's a recurring meeting, you should first search for all occurrences of meetings with the specified subject and then remove them.

    Here's a step-by-step guide:

    1. Open PowerShell and run the following commands to connect to Exchange Online:
         $UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection Import-PSSession $Session -DisableNameChecking
      
    2. Use the Search-Mailbox cmdlet to search for calendar items with the subject "xyzmeeting" in the room mailbox's calendar.
         Search-Mailbox -Identity room1@contoso.com -SearchQuery 'Subject:"xyzmeeting"' -SearchDumpsterOnly:$false -TargetMailbox <YourMailbox> -TargetFolder "SearchResults" -LogLevel Full
      
      Replace <YourMailbox> with your own email address. This command will search the room mailbox for all meetings with the subject "xyzmeeting" and copy them to a folder named "SearchResults" in your mailbox.
    3. After verifying the search results, you can remove the calendar items. Use the Remove-MailboxItem cmdlet to remove the meetings found in the previous step.
         $items = Search-Mailbox -Identity room1@contoso.com -SearchQuery 'Subject:"xyzmeeting"' -SearchDumpsterOnly:$false -EstimateResultOnly | Select-Object -ExpandProperty ResultItems foreach ($item in $items) { Remove-MailboxItem -Identity room1@contoso.com -ItemId $item.Id }
      
      Note: Remove-MailboxItem cmdlet may not be available in all environments. If you do not have it, you can use Remove-MailboxCalendarItem for a more precise removal.
    4. Ensure that the items are removed by checking the room mailbox's calendar and ensuring that there are no meetings with the subject "xyzmeeting."

    Remember to replace room1@contoso.com with the actual alias of your room mailbox. This process should help you remove the specified calendar reservations. If you encounter issues or specific cmdlets are not available, consider checking your permissions and the availability of commands in your Exchange Online environment.

    Please feel free to contact me if you have any queries.

    Best,

    Jake Zhang


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.