The mailbox database “DB01” cannot be deleted.
Error:
This mailbox database contains one or more mailboxes or arbitration mailboxes.
To get a list of all mailboxes in this database, run the command Get-Mailbox -Database <Database ID>. To get a list of all arbitration mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Arbitration. Before you can remove this mailbox database, you must disable, move, or remove user mailboxes and move arbitration mailboxes.
Error:
This mailbox database contains one or more mailboxes or arbitration mailboxes.
To get a list of all mailboxes in this database, run the command Get-Mailbox -Database <Database ID>. To get a list of all arbitration mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Arbitration. Before you can remove this mailbox database, you must disable, move, or remove user mailboxes and move arbitration mailboxes.
Run below command to get all arbitration mailboxes in existing Mailbox Database:
Get-Mailbox -Database “Existing Database Name” -arbitration | ft -wrap -auto
Get-Mailbox -Database “Existing Database Name” -arbitration | ft -wrap -auto
Run below command to move all arbitration mailboxes in to the new Mailbox Databse:
New-MoveRequest -Identity “Alias Name” -TargetDatabase – “New Database Name“
Eg:
New-MoveRequest -Identity “SystemMailbox{1f05a999-8ca5-1475-dae2-9fe08c68a8e55″ -TargetDatabase – “DB02“
Repeat this step to all three mailboxes…
Run below command to get list of all moved requests:
Get-MoveRequest -SourceDatabase “Old Database Name“
Run the below cmdlet to remove the move request:
Remove-MoveRequest “Alias Name“
Eg:
Remove-MoveRequest “SystemMailbox{1f05a999-8ca5-1475-dae2-9fe08c68a8e55”
Repeat this step to remove other mailboxes too.
After completing above steps trying to delete the default Mailbox Database from Exchange Management Console.
Leave a Reply