Old mailbox appears in Disconnected Mailbox and cannot be deleted ?

Hi People,

I got Exchange Server 2007 SP3 and I wonder as to why some of the old mailboxes still appears in the Disconnected Mailbox console ?

I have already right click and remove all of my Exchange Server mailboxes but somehow in the Disconnected Mailbox I cannot remove it completely.

Is there any fast way to delete those mailboxes to reclaim the disk space in the Exchange database ?
LVL 9
Senior IT System EngineerIT ProfessionalAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Adam FarageEnterprise ArchCommented:
For Exchange 2007 its a bit of a pain, since the Remove-StoreMailbox command isnt until Exchange 2010 SP1. You can follow these directions: http://theucguy.net/task-3-delete-all-disconnected/

I would like to comment on this though..

Is there any fast way to delete those mailboxes to reclaim the disk space in the Exchange database ?

Mailboxes that are soft deleted (e.g: disconnected) delete during the online maintenance after the default tombstone period occurs (which should be either 7 or 14 days from the date of disconnection). Even if you remove these mailboxes, the .EDB file size does not shrink and what is called "whitespace" is created. This is space within the database that is non-allocated to any mailbox, and is used when a new mailbox is create OR when a current mailbox needs to expand. Since the .EDB file does not need to expand, it requires less IOPS to perform the actions thus better performance for the user and the server.

If you want to reclaim "white space" you should create a new database / storage group and then move all users from the old database / storage group to the new one, then remove the old database / storage group.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SteveCommented:
exchange has a retention period built in and configured on each mailbox database. by default the mailboxes will remain in the 'disconnected' state until this period expires.

once they have been removed the space they occupied in the DB is then free for other mailboxes to use. if youre hoping to use the disk space elsewhere you'll need to run a defrag of the db or move the mailboxes to a new DB and remove the old one.
0
Senior IT System EngineerIT ProfessionalAuthor Commented:
Ah ok, how can I view the existing and set the expiry period of this disconnected mailbox into 7 days ?
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

SteveCommented:
go into the DB properties in exchange. the retention periods are in there.

http://technet.microsoft.com/en-GB/library/bb125047(v=exchg.80).aspx
0
Adam FarageEnterprise ArchCommented:
Do not run an offline defrag (ESEUTIL /D) as it is no longer recommended for Exchange 2007 +. Move the mailboxes to a separate mailbox database and storage group, as this would also reclaim the whitespace while not causing any of the possible issues an ESEUTIL /D switch might cause.

As for the retention, run the following to get it for all mailbox databases:

Get-MailboxDatabase | Select Name,MailboxRetention 

Open in new window


This will let you know which database has what set for the mailbox retention.
0
Senior IT System EngineerIT ProfessionalAuthor Commented:
Thanks man,

so in this case I can just run the following command:

Get-mailboxServer | Set-MailboxDatabase -MailboxRetention 7.00:00:00

Open in new window

so thatafter 1 week the deleted / disconnected mailboxes are all deleted thus giving me lots of white spaces on each mailbox DB ?
0
Adam FarageEnterprise ArchCommented:
That is correct, that would set the tombstone to 7 days, so when online maintenance (OLM) runs it would flush out those disconnected mailboxes.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.