Removes the mailbox from the Exchange database.
Syntax
Remove-EmcMailboxDatabase -MailboxDatabase <MailboxDatabase> [-Force] [-RemoveClusterEntities] [-DismountMailboxDatabase] [-Silent] [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters
-MailboxDatabase <MailboxDatabase>
Attributes: Required, Position: named
Specifies the mailbox database to remove.
-Force <SwitchParameter>
Attributes: Optional, Position: named
Allows the cmdlet to continue without asking for user confirmation.
-RemoveClusterEntities <SwitchParameter>
Attributes: Optional, Position: named
Removes the cluster entities of the specified mailbox database.
-DismountMailboxDatabase <SwitchParameter>
Attributes: Optional, Position: named
Specifies whether or not to dismount the mailbox database before removing it.
-Silent <SwitchParameter>
Attributes: Optional, Position: named
Turns off all the informational and verbose messages. However, it still displays errors.
-WhatIf <SwitchParameter>
Attributes: Optional, Position: named
Shows what would happen if the cmdlet runs. The cmdlet is not run.
-Confirm <SwitchParameter>
Attributes: Optional, Position: named
Prompts you for confirmation before executing the command.
<CommonParameters>
This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.
Examples
-------------- Example 1 --------------
C:\PS>$ms = Get-EmcMailboxServer MBDB1
C:\PS>$db = Get-emcMailboxDatabase –-ID MBDB1 –-MailboxServer $ms
C:\PS>Remove-EmcMailboxDatabase -MailboxDatabase $db
This example removes the MBDB1 mailbox database.