Posted on February 3, 2014 · Posted in Exchange

How to delete default database in Exchange 2010/2013

During the process of mailboxes server Exchange 2010/2013 installation mailbox default database is created. If you try to delete default database you will get an error. The error appears because service mailboxes presence in the database.

error on delete default database exchange

This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, public folder 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 mailbox plans in this database, run the command Get-MailboxPlan. To get a list of archive mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Archive. To get a list of all public folder mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -PublicFolder. To get a list of all arbitration mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Arbitration. To disable a non-arbitration mailbox so that you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID>. To disable an archive mailbox so you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID> -Archive. To disable a public folder mailbox so that you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID> -PublicFolder. Arbitration mailboxes should be moved to another server; to do this, run the command New-MoveRequest <parameters>. If this is the last server in the organization, run the command Disable-Mailbox <Mailbox ID> -Arbitration -DisableLastArbitrationMailboxAllowed to disable the arbitration mailbox. Mailbox plans should be moved to another server; to do this, run the command Set-MailboxPlan <MailboxPlan ID> -Database <Database ID>.

Service mailboxes transfer

For database deletion it is necessary to transfer these mailboxes to the another database.  The following command is needed to be performed for arbitration mailboxes search:

Get-Mailbox -Arbitration -Database "Mailbox Database 1200388344"

Get System Mailbox Exchange 2010 / 2013

Now let’s transfer these mailboxes into another database:

Get-Mailbox -Arbitration -Database "Mailbox Database 1200388344" | New-MoveRequest -TargetDatabase prmlabmbx01-prmdag01-db01

transfer system mailbox exchange2010 to another database

Except for arbitration mailboxes in Default Database there are also administrator Mailbox and Discovery Search Mailbox. They also should be transfered.

Get-Mailbox -Database "Mailbox Database 1200388344" | New-MoveRequest -TargetDatabase prmlabmbx01-prmdag01-db01

move admin and discovery search mailbox's

Let’s check if transfer was successful.

Get-MoveRequest

exchange mailbox move request

After transfer the default database may be deleted.

Remove-MailboxDatabase "Mailbox Database 1200388344"

delete exchange 2010 default database

Previous:
Next:
Related Articles