17.13. Purging a Deleted Mailbox
You want to purge a deleted mailbox from the Exchange Store.
Using a graphical user interface
Open the Exchange System Manager (ESM) snap-in.
In the left pane, browse to the mailboxes container of the server, storage group, and database where you want to purge a mailbox.
In the left pane, scroll down until you find the mailbox that you wish to purge. The mailbox should have a small red circle with a white X in it, indicating it is disconnected.
Right-click the mailbox and select Purge.
When prompted if you are sure you want to continue, click Yes.
' This code purges a deleted mailbox. ' ------ SCRIPT CONFIGURATION ------ strComputer = "
<Exchange Server>" 'e.g., ExchServer2 strMailbox = "
<Mailbox Alias>" 'e.g., jsmith ' ------ END CONFIGURATION --------- set objWMI = GetObject("winmgmts:\\" & strComputer & _ "\root\MicrosoftExchangeV2") set objDiscMbx = objWMI.ExecQuery("Select * from Exchange_Mailbox WHERE " _ & "MailboxDisplayName='" & strMailbox & "'",,48) for each objMbx in objDiscMbx objMbx.Purge next Wscript.Echo "Successfully purged mailbox."
A mailbox that has been deleted still has physical presence in the Exchange store. This recipe wipes that mailbox completely from the store. Once a mailbox has been purged, the only way to retrieve it is through restoring from a backup, which could be a lengthy process given the need to recover the entire store. In other words, don't do this unless you are sure of the ...