Forum Discussion

fstorer's avatar
fstorer
Brass Contributor
Sep 06, 2021
Solved

Removing shared mailboxes

Hello everyone,   I have to remove several shared mailboxes from our tenant and I am going to do this via a PowerShell script. As you may know, every time you try to remove a mailbox using the "rem...
  • VasilMichev's avatar
    Sep 07, 2021
    That's because you are using the -PermanentlyDelete switch. As the documentation says, this switch is used for removing soft-deleted mailboxes:

    This switch works only on mailboxes that have already been deleted, but are still recoverable (known as soft-deleted mailboxes).

    Simply do it like this:

    Remove-Mailbox shared -Force

Resources