Deleting unnecessary e-mails from the mailbox

If you want to delete many messages, via the webmail interface or mail client, then such operation can be time-consuming. This process can be improved by using a tool available through cPanel.

How to delete emails older than?

In order to remove messages older than a certain date or period, from a given mail directory (e.g. Received, Recycle Bin, Sent, and other user directories)

  1. Log in to Your cPanel account.
  2. Scroll to Email section and click on "Email Disk Usage".

    cPanel - mailbox cleanup - step 1
  3. On the new page we select an email account for which we will delete messages.

    cPanel - mailbox cleanup - step 2
  4. Then click on "Manage" in the mailbox folder line, you want to clear out.
    cPanel - mailbox cleanup - step 3
  5. In the new area that will appear, choose one of the way of cleaning e-mails from the dropdown menu:

    cPanel - mailbox cleanup - step 4
    • 1 year old or more - all emails older than a year will be deleted,
    • 30 MB in size or more - all emails that are larger than 30 MB will be deleted,
    • Previously viewed - all emails that have been viewed will be deleted,
    • All Messages - all emails will be deleted,
    • Custom Query ... - all emails will be deleted, according to the query. With this option an additional field "Dovecot Query ..." appears, for entering your own query.

      Examples of custom queries:
    • savedbefore 1hour - deleting emails older than 1 hour,
    • savedbefore 2weeks - deleting emails older than 2 weeks,
    • savedbefore 4weeks - deleting emails older than 4 weeks (month),
    • savedbefore 108weeks - deleting e-mails older than 2 years.

  6. In order to start cleaning, click "Delete Permanently".
  • poczta, mail, mails, kasowanie, delete, remove, bulk delete
  • 9 Users Found This Useful
Was this answer helpful?

Related Articles

What attachments cannot be sent by e-mail?

The content of the e-mail is not limited to text only. You can also use it, to send files in...

How to configure the inbound and outbound mail server?

When configuring the mail client, You will be required to enter the addresses of the incoming...

How do I add an email alias?

The cPanel interface allows you to configure so called mail aliases. This is nothing but sending...

How to export and import contacts on Roundcube?

Roundcube is a web-based mail client. It is equipped with an address book, which allows you to...

How do I receive mail from hosting via Gmail?

Configuring Gmail hosting is not a difficult task. The ability to keep your mail in one place...