How to delete all email messages in cPanel
I stupidly didn’t set the default email address to :fail: on a couple of accounts on my cPanel server and found, while running a remote backup, that there were a few gigs of spam emails that were just sitting in those accounts.
But after going through about a dozen of the 500+ pages in Horde to delete the message I figured there had to be a quicker way. Found it by clicking on the Folders icon in Horde, selecting Inbox, and selecting Empty folder. It prompted me to delete all the messages and a few minutes later they were gone and the disk space was back.
Question, Comments...
Do you have more questions. Please either leave a comment below or join us in our new forum.
Oops, one flaw found. On the account that had about 160,000 emails the server used up the memory that it had allocated to PHP. So I had to empty the folder 3 times. Still better than the 100 or so pages of 999 messages I was trying to delete.