Home > Microsoft Exchange Tips > Exchange Server Administration Tips > Purge mail store in a snap
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

EXCHANGE SERVER ADMINISTRATION TIPS

Purge mail store in a snap


Serdar Yegulalp, Contributor
07.22.2004
Rating: -4.33- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


You may find that you need to periodically purge an Exchange mail store of all its messages. For instance, if an Exchange server has been set up to do performance testing or evaluation of third-party Exchange software, it would be useful to have a methodology to purge all mail in the server in one swoop. In another scenario, you may train people on how to work Exchange server, and the server will need to be emptied periodically.

Four relatively simple ways to do this come to mind:

  • Back up the databases in a blank state and then restore them over the existing mailboxes. In Exchange 2003 this sort of operation is relatively easy, thanks to the presence of the Recovery Storage Group (RSG). The RSG holds restored backups for copying to the appropriate group, so a backup can be restored out of the RSG as needed.

  • Delete and recreate the mailboxes using the Active Directory Users and Computers (ADUC). This has the disadvantage of being overkill -- unless you want to delete the mailboxes wholesale and then recreate them. If you have all the mailboxes in question in a single organizational unit, this can be done relatively quickly. This process could also be automated with a script for further speed.

  • Use an application like Active Folders Content Manager to automatically delete messages as needed. This is one way to purge selectively, and can be useful if you find you need to do other selective deletions that aren't really easily constrained through organizational units (OUs) or other standard Exchange mechanisms.

  • The simplest and most direct way: Unmount the database, delete the .EDB and .STM files, and remount the database. When Exchange senses the needed files are missing, it will recreate them. While this is probably the easiest method, it is also the most global and unforgiving.


Serdar Yegulalp is the editor of the Windows 2000 Power Users Newsletter.


Do you have a useful Exchange tip to share? Submit it to our monthly tip contest and you could win a prize and a spot in our Hall of Fame.

Rate this Tip
To rate tips, you must be a member of SearchExchange.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Exchange Server Administration Tips
Is your Exchange 2007 hub transport server healthy?
Avoid Outlook 2007 performance issues during repairs
Developing an Exchange 2007 server role DR plan
How DSAccess service improves Exchange Server 2007 reliability
An introduction to the Exchange Remote Connectivity Analyzer tool
Monitor Exchange 2007 with disk- and RPC-related counters
DPM 2007 replica inconsistencies in Exchange databases
Track Exchange 2007 mailbox server health using database counters
Digging deeper into Exchange Server 2010
Exchange admins: Is it time to rethink your email address policy?

Microsoft Exchange Server Database Management
Should you remove .STM files from Exchange Server 2003?
New high availability features in Exchange Server 2010
Testing a passive database for corruption in Exchange Server 2007
Database changes that enhance Exchange Server 2007 fault tolerance
Microsoft Exchange Server 2003 database recovery methods
Creating disk space for an Exchange Server 2003 priv1.edb database
Why boot an Exchange server from a storage area network (SAN)?
DetachPipe: Outlook add-in tool saves and restores email attachments
How to calculate white space in an Exchange streaming (.STM) file
An affordable Exchange Server database backup software option for SMBs

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Email Server Solutions: Exchange 2007, Exchange 2003, Exchange 2000, SharePoint
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts