Remove a Mailbox Database
Applies to: Exchange Server 2010
You can use the Exchange Management Console or the Shell to remove a mailbox database.
Looking for other management tasks related to mailbox databases? Check out Managing Mailbox Databases.
What Do You Want to Do?
- Use the EMC to remove a mailbox database
- Use the Shell to remove a mailbox database
Use the EMC to remove a mailbox database
You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Database permissions" entry in the Mailbox Permissions topic.
- In the console tree, navigate to Organization Configuration > Mailbox.
- In the work pane, expand the mailbox database you want to remove.
- In the action pane, click Remove.
- A warning appears asking if you're 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.
Use the Shell to remove a mailbox database
You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Database permissions" entry in the Mailbox Permissions topic.
This example uses the Remove-MailboxDatabase command to remove the database MyDatabase.
Remove-MailboxDatabase -Identity "MyDatabase"
- When you are prompted about whether you're sure that you want to perform the action, type Y.
- 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.
For detailed syntax and parameter information, see Remove-MailboxDatabase.