Windows OS Hub
  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange

 Windows OS Hub / Exchange / How to delete default database in Exchange 2010/2013

February 3, 2014 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-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

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

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

Get-MoveRequest

exchange mailbox move request

After transfer the default database may be deleted.

Remove-MailboxDatabase "Mailbox Database 1200388344"

Remove-MailboxDatabase "Mailbox Database 1200388344"

delete exchange 2010 default database

2 comments
0
Facebook Twitter Google + Pinterest
previous post
How to clean-up system disk in Windows 7 SP1 by deprecated system updates deleting
next post
Safe cleaning up WinSXS folder in Windows Server 2012

Related Reading

Get-MessageTrackingLog: Search Message Tracking Logs on Exchange Server

December 19, 2019

Managing Exchange Mailbox Inbox Rules with PowerShell

August 29, 2019

Fix: Outlook 2016/2013 Always Starts in Offline Mode

July 30, 2019

Configuring Anti-Spam Protection on Exchange 2013, 2016 –...

June 5, 2019

How to Blacklist/Block Sender Domain or an Email...

June 3, 2019

2 comments

Juan June 15, 2016 - 1:22 pm

Thanks, work for me!

Reply
Christian November 8, 2016 - 12:28 pm

Thanks, worked for me too!
One thing I have to mention: The database has to be mounted (through ECP or Shell).

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange
  • Windows 10
  • Windows 8
  • Windows 7
  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2008 R2
  • PowerShell
  • VMWare
  • MS Office

Recent Posts

  • MS SQL Server 2019 Installation Guide: Basic Settings and Recommendations

    January 19, 2021
  • USB Device Passthrough (Redirect) to Hyper-V Virtual Machine

    January 15, 2021
  • Windows 10: No Internet Connection After Connecting to VPN Server

    January 13, 2021
  • Updating the PowerShell Version on Windows

    December 24, 2020
  • How to Enable and Configure User Disk Quotas in Windows?

    December 23, 2020
  • Restoring Deleted Active Directory Objects/Users

    December 21, 2020
  • Fix: Search Feature in Outlook is Not Working

    December 18, 2020
  • Zabbix: Single Sign-On (SSO) Authentication in Active Directory

    December 17, 2020
  • Preparing Windows for Adobe Flash End of Life on December 31, 2020

    December 15, 2020
  • Auditing Weak Passwords in Active Directory

    December 14, 2020

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • Manage Domains and Email Address Whitelist in Exchange Server 2013
  • How to Move and Truncate Logs in Exchange 2013
  • Exchange 2013 Database Recovery
  • Full Mailbox and Single Item Recovery in Exchange 2013
  • Exchange 2013: MAPI over HTTP
  • How to Hide Users from Exchange Distribution Group
  • Exchange 2013 Mailbox Database Backup with Windows Server Backup
Footer Logo

@2014 - 2018 - Windows OS Hub. All about operating systems for sysadmins


Back To Top