Deleting Old Emails in cPanel

Deleting Old Emails in cPanel

When your rented hosting is using too much email storage, especially due to many saved email messages, you need to upgrade your hosting or delete old emails in cPanel.

If you want to use the second option, it might be difficult to check emails one by one, because when an email account is using a lot of disk space, there are surely thousands of emails stored inside.

No need to worry, because cPanel has options to bulk delete old emails, emails with large attachments, previously read emails, and even all messages within an email account.

How to Delete Old Emails in cPanel

Note: When using this method, you cannot recover deleted messages because they will be permanently removed, including from the trash folder.

You can use this method to delete messages that have been stored in your email account for more than a year, as these emails are usually no longer needed after this period.

  1. Log in to cPanel, then find and open the page Email Disk Usage
    Cara Menghapus Email Lama di cPanel - 1
  2. Select the email account from which you want to delete messages
    Cara Menghapus Email Lama di cPanel - 2
  3. Click the button Manage in the existing email category
    Cara Menghapus Email Lama di cPanel - 3
  4. In the option Messages to delete, select the option 1 year old or more, then click the button Delete Permanently
    Cara Menghapus Email Lama di cPanel - 4
  5. Check your email again, and you will see that the usage has decreased.
    Cara Menghapus Email Lama di cPanel - 5

If you want to delete all older emails, for example, deleting emails received before February 28, 2022, you can use a custom query with the following Dovecot Query command: savedbefore 2007-04-13

You can check this page for more information regarding Dovecot Query: https://doc.dovecot.org/3.0/man/doveadm-search-query.7/

Written by

Muhammad Khoirun Nasikin

I enjoy tinkering with WordPress, hosting, VPS, web development, and various small experiments related to websites. I have over 3 years of experience in the web hosting industry.

COMMENTS

Loading...