Exchange 2010 zero out Exchange database

I am moving mailboxes to new databases and need to know if there is a easy way to zero out the present database. I would like to remove the white space with the exception of any metadata that we might need to keep running the DB.
techdriveAsked:
Who is Participating?
 
Jamie McKillopIT ManagerCommented:
If you delete the DB, you will not be able to recover a disconnected mailbox. If you defrag, you will be able to recover a disconnected mailbox.

-JJ
0
 
Jamie McKillopIT ManagerCommented:
Hello,

The only way to remove whitespace from a database is to do an offline defrag. I don't recommend you do this as it isn't without risk and will require downtime. Are you moving all mailboxes out of this database or are you leaving some behind?

-JJ
0
 
Justin YeungSenior Systems EngineerCommented:
http://exchangeserverpro.com/defrag-exchange-2010-mailbox-database/

explained how to defrag the database and get whitespace back.
0
How do you know if your security is working?

Protecting your business doesn’t have to mean sifting through endless alerts and notifications. With WatchGuard Total Security Suite, you can feel confident that your business is secure, meaning you can get back to the things that have been sitting on your to-do list.

 
techdriveAuthor Commented:
OK LET ME change my question. I am just only interested in zeroing out the DB. After I move the users out I just want to remove all of its reaming contents.
0
 
Jamie McKillopIT ManagerCommented:
In that case, just dismount the DB and delete it in EMC.

-JJ
0
 
techdriveAuthor Commented:
well what about the metadata.
0
 
Jamie McKillopIT ManagerCommented:
What metadata are you referring to?

-JJ
0
 
techdriveAuthor Commented:
I actually found the answer after doing some reading and receiving some assistance from you guys. I am just going to defrag the DB which will clean all the white space and relcaim it.
0
 
Jamie McKillopIT ManagerCommented:
If you don't have any mailboxes left in the database, defragging it is a waste of time. If you want to start with a blank database in order to reuse it, just dismount the database then delete the edb and log files. Remount the database and it will create a new blank database.

-JJ
0
 
techdriveAuthor Commented:
jjmck I did exactly What you said and this works. I could not get exchange to work running the eseutil command.
0
 
techdriveAuthor Commented:
The only problem I ran into is what happens to a disconnected mailbox once I dismount, delete the DB, mount database and start over. Also what happens if I use the defrag method for cleaning white space what happens to the disconnected mailbox. For example a user was disconnected 10 days ago, and I deleted DB or defragged DB. Is this user still recoverable or am I SOL.
0
 
techdriveAuthor Commented:
jmmck answers have been able to allow me the opportunity to provide a custom solution
0
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.

All Courses

From novice to tech pro — start learning today.