In Exchange 2019, like other versions like 2016 or 2013, you can delete a mailbox using a single command. To firstly find the list of mailboxes you can run the following command:

  • Get-Mailbox
Exchange 2010:- move requests with a bit more info using powershell

In this example we are going to remove the mailbox called “edward”. To remove it you can use the following command:

  • Remove-Mailbox edward
Exchange 2010:- move requests with a bit more info using powershell

You will be prompted to confirm removal. If you don’t want to be prompted you can use the following command:

  • Remove-Mailbox edward -Confirm:$all

Hope it helps.

    wpChatIcon

    Discover more from Everything-PowerShell

    Subscribe now to keep reading and get access to the full archive.

    Continue reading