How can I automatically tidy up system and domain level folders?

  1. Home
  2. Knowledge Base
  3. GMS
  4. How can I automatically tidy up system and domain level folders?

Question

This solution was provided by a customer who uses the following batch file scheduled to run every night. He kindly passed it on in the knowledge that it may also prove useful to other customers.

Note: The badmes directory can also be managed automatically directly from the Domain or System level Undeliverable Mail pages in the administration interface.

Answer


REM Change to root drive where GMS is installed
c:

CD GordanoDomain.comUserstrash
del inbox.*

REM Change to Domain Users folders to delete trash files for each user
cd GordanoDomain.comUsers
del /s /q trash*.*


REM Change to Domain folder to delete Bad Message files
cd GordanoDomain.combadmes
del /s /q *.*


REM Change to Domain folder to delete Domain Quarantine files
cd GordanoDomain.comquarantine
del /s /q *.*

exit

Keywords:delete quarantine trash badmes folders

Was this article helpful?

Related Articles