Sometimes when you delete/remove mailbox then you can’t see it immediately in Disconnected Mailbox option under Recipient Configuration.
What you need to do in that case?
Lets consider that we are deleting a mailbox named “Vijay Kumar” in this scenario.
When you right click on that and delete, it asks you for the confirmation. Click Yes.
Now deleted/removed mailbox should available in Disconnected Mailbox but you are unable to see.
You need to run below command to cleanup your database, like in Exchange 2003 we right click on Mailboxes and click on “Run Cleanup Agent” to see the Disconnected Mailboxes after removal of user object in Active Directory.
In Exchange 2007 you can do it with Clean-MailboxDatabase command.
Clean-MailboxDatabase “Database Name”
Now, when you click on Disconnected Mailbox then you are able to see the deleted user “Vijay Kumar” into it.
Now you have two options for Disconnected Mailbox, either re-connect it or permanently delete it.
If you want to permanently delete mailbox then you need to go through shell command.
In Exchange 2003 we do “Purge” on deleted mailbox, same in Exchange 2007 you need to run Remove-Mailbox command.
$Temp = Get-MailboxStatistics | Where{$_.DisplayName -eq “Vijay Kumar”}
Remove-Mailbox -Database ” DB Name” -StoreMailboxIdentity $Temp.MailboxGuid
This command permanently delete mailbox from the database and you can not see in Disconnected Mailbox.




Hi amit,
Is it possible to do this task in GUI after applying Exchange Sp1?
Comment by Prabhu — June 7, 2008 @ 10:27 pm
I tried this and it did not work. We have Exchange 2007 SP1.
Comment by Paul — June 27, 2008 @ 8:09 pm
It work’s for me.
Thank you!
Comment by Gil — July 15, 2008 @ 7:02 pm
It works on Exchange 2007 SP1! Thank you!
For those who have more than one storage group – use full path to storage group in command string.
Example: clean-mailboxdatabase “main storage gr
oup\mailbox database”
Comment by Tic — July 24, 2008 @ 9:10 am
Thank you Amit…this worked for me…
Comment by John — August 26, 2008 @ 9:19 pm
thank’s Amit…….you are very pro.
Comment by tictic — October 6, 2008 @ 1:05 am
I love you for this.
I accidentally deleted a whole bunch of users in one go in AD, then their Mailboxes all disappeared and did not show up in “Disconnected Mailboxes” section.
After panicing for a while I realised they still existed user the GetMailbox command, and then saw this command which made them show up in the console and let me reattach them.
Thanks again.
Comment by Matt — December 17, 2008 @ 6:48 am
Thanks a lot for this tip. I love this “Clean-Mailboxdatabase” -CMdlet. Removed mailboxes showed in the “Disconnected mailbox” and reconnect worked for me.
Comment by Djaw — January 6, 2009 @ 5:24 pm