How to clear all the emails for default cPanel email account

Default email accounts are stored in 2 folders called “cur” and “new” under /home/username/mail/

So you need to clear all the filer under  /home/username/mail/cur/ and  /home/username/mail/new/

Run the following commands to clear the files

rm -rf /home/username/mail/cur/*
rm -rf /home/username/mail/new/*

The changes in the usage wont reflect in cPanel interface. Because the disk usage details are stored in file called maildirsize so lets rename it

mv maildirsize maildirsize_old

Monthly server support with Unlimited tickets, 24×7 monitoring, Security Audit and lot more for just $59 

[sep][/sep][button size=”large” color=”green” title=”Server Management from iServersupport” link=””]Server Management at just $59[/button]