Use PowerShell to delete a booking calendar

This article explains how someone with an administrator role in a relevant Office 365 tenant, who also has some familiarity with Windows PowerShell, can delete an unwanted Bookings calendar.

Warning: The Bookings calendar is where all relevant information about that booking calendar and data are stored. This includes the business information, logo, and working hours added when the booking calendar was created;  the relevant staff and services added when the booking calendar was created; and all bookings and time off appointments added to the booking calendar once it was created. Once a booking calendar is deleted, this information is permanently deleted, too, and cannot be recovered.

Connect to Exchange Online PowerShell

Note: Bookings is turned on by default for customers who have the Office 365 Business Premium, or Office 365 Education A3 and A5 subscriptions. Bookings is also available to customers who have Office 365 Enterprise E3 and E5, but it is turned off by default. To turn it on, see Get access to the Office 365 business apps for enterprise subscriptions.

See Connect to Exchange Online Power Shell for prerequisites and guidance for connecting to Exchange Online PowerShell.

Use PowerShell to delete a booking calendar

Once you’ve carefully read and taken the steps described in the TechNet article referenced above, you can take the following steps to permanently delete an unwanted booking calendar.

  1. Make sure you are using an active Microsoft PowerShell command window that you ran as an administrator.

    • PowerShell can be run by searching for it with the Windows Start menu.

    • Once you find it, a right click will open a content menu with a “Run as administrator” option.

  2. Enter the following command:

    $user = get-credential

  3. Once prompted, log on with the tenant administrator credentials for the Office 365 tenant hosting the booking calendar you want to permanently delete.

  4. Next, at the PowerShell command prompt, enter this command:

    $s = New-Pssession -ConnectionUri https://outlook.office365.com/powershell-liveid -Credential $user -Authentication basic -AllowRedirection -ConfigurationName Microsoft.Exchange

  5. Then enter the following command:

    Import-PSSession $s

  6. Once this command is done processing, enter the following command to get a list of the booking mailboxes in your tenant:

    get-mailbox -RecipientTypeDetails Scheduling

  7. Type the following command:

    remove-mailbox [BookingCalendarToDelete]

    Be sure to add a space after the remove-mailbox and type the exact name of the booking mailbox alias listed using the command above that you want to permanently delete, without the brackets.

  8. Enter the following command:

    get-mailbox -RecipientTypeDetails Scheduling

    This will let you verify that the mailbox you wanted to permanently delete is no longer showing in the list.  

  9. Type Exit at the prompt to close your PowerShell session.

Expand your skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×