cPanel — Do you see /root/.cpanel/comet eating disk space ?

Ever came across a situation in which /root/.cpanel/comet consumes considerable amount of disk space?
Reason : This issue happens when high number of emails are in the mail queue manager which can occur when spamming is carried out in the server.

Manually purging the files would be an effort-consuming task.

Clear the comet directory as shown :

# /usr/local/cpanel/bin/purge_dead_comet_files