I need to clean up a Windows 2003 Exchange database, it is growing too large. What command should I use?
Not sure what you mean by "cleaning up" the database. Exchange does the clean up for you during the nightly maintenance interval, and you normally don't need to do any cleanup manually. Besides, such clean up, or offline defragmentation, will result in an outage.
Nevertheless, should you want to do this, the first step is taking a look at Event ID 1221 in the server's Application...
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
Event Log for that store. it will tell you whether there is enough free space in the store. If there isn't much free space, I wouldn't recommend doing it.
If you've determined there's enough free space in the store and you need to reclaim disk space, the command is:
Other details and considerations for offline defragmentation are documented in