How to Remove a Mailbox Database
Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.
Applies to: Exchange Server 2007, Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3
This topic explains how to use the Exchange Management Console or the Exchange Management Shell to remove a mailbox database.
Before You Begin
To perform the following procedures, the account you use must be delegated the following:
- Exchange Server Administrator role and local Administrators group for the target server
For more information about permissions, delegating roles, and the rights that are required to administer Microsoft Exchange Server 2007, see Permission Considerations.
Also, be aware that, if you want to remove the Exchange database (.edb) file on which the database is stored from the hard drive, you must remove it manually.
Procedure
To use the Exchange Management Console to remove a mailbox database
Start the Exchange Management Console.
In the console tree, expand Server Configuration, and then click Mailbox.
In the work pane, expand the storage group that contains the mailbox database, and then click the mailbox database you want to remove.
In the action pane, click Remove.
A warning appears asking if you are sure you want to remove the mailbox database. Click Yes.
When the dialog box appears stating that the database was removed successfully, note the location of the Exchange database (.edb) file. If you want to remove this file from the hard drive, you must remove it manually. Click OK.
To use the Exchange Management Shell to remove a mailbox database
Run the following command:
Remove-MailboxDatabase -Identity <Database_Name>
When you are prompted about whether you are sure that you want to perform the action, type Y.
When the warning appears stating that the database was removed successfully, note the location of the Exchange database (.edb) file. If you want to remove this file from the hard drive, you must remove it manually.
For detailed syntax and parameter information, see the Remove-MailboxDatabase reference topic.
For More Information
For more information about managing databases, see Managing Storage Groups and Databases.