How to manage e-mail disk usage in cPanel

Last modified: Thursday November 30th, 2023

This article will show you how to view and manage disk space usage in cPanel. Using this feature, you can delete messages from accounts that match a set of specific criteria.

Managing e-mail disk usage

Please follow these steps to manage e-mail disk usage:

  1. Log in to cPanel.
  2. Click Email Disk Usage in the EMAIL section of the cPanel home screen:                                          How to manage e mail disk usage in cPanel email disc usage
  3. Select the e-mail account you want to view on the Email Disk Usage page, in the Account list box: How to manage e mail disk usage in cPanel email disc usage cpanel
  4. For each folder in the e-mail account, it is possible to view the following statistics:
    • The number of messages.
    • The disk usage amount.
  5. If you need to free disk space click Manage, under Actions.
  6. Select one of the following filters to use for the messages you want to delete, under Messages to delete:
    • 1 year old or more: This option deletes all messages older than one year.
    • 30 MB in size or more: This option deletes all messages that are 30MB or larger.
    • Previously viewed: This option deletes all messages that have already been opened.
    • All messages: This option deletes all messages in the folder.
    • Custom query: This option allows you to use Dovecot search queries to select specific message sets. For example, you can select all messages that contain a certain word in the subject line, all messages older than a week, and so on. For more information about how to create Dovecot search queries, please visit https://wiki2.dovecot.org/Tools/Doveadm/SearchQuery.
      When entering a query into the Dovecot query text box, make sure you only include the query itself. Do not include doveadm or search. For example, to select all messages larger than 100 kilobytes, enter LORGER 100k rather than doveadm search LORGER 100k.
  7. Click Delete Permanently, and cPanel deletes the specified messages.
    Be careful! It is impossible to recover messages after they are deleted.

Looking for an outstanding cPanel-based web hosting provider? Try our web hosting packages with cPanel

Was this article helpful?
Views: 115

10 Years Beehosting!
Celebrate with 70% OFF + FREE Site Transfer.

Beehosting.pro website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Menu