How to auto delete Emails on cPanel

cPanel is that the best to understand and flexible control panel within the hosting industry because to its GUI. You’ll have several additions to form any changes and upgrades to your hosting account through cPanel. cPanel hosting is straightforward and powerful at same time giving a high degree of stability and security. The most recent version is 11.xx. cPanel offers the possibility to simply manage all services associated with the domain, with an easy click on the icons on the panel. you’ll add e-mail accounts, provides direct access to files, activate a MySQL database, back up your files, install a shopping cart and lots of additional features are available in cPanel. the utilization of the panel is simplified because of a well-designed easy interface.

Following is the way to auto delete Emails on cPanel :

You just need to set the cron by using cpanel >> cronjob and add the following command to run in cron.

 /usr/bin/archivemail –quiet –delete –days 20 /home/{USER}/mail/inbox

Just by using the command as above you can delete the 20 days old emails.

Note: Make sure you replace {USER} with your actual cPanel Hosting account username.