Share via


Exchange 2019: Delete a mailbox using PowerShell

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

http://everything-powershell.com/wp-content/uploads/2019/01/remove1.png

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

  • Remove-Mailbox edward

http://everything-powershell.com/wp-content/uploads/2019/01/remove2.png

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