Search Our Database

How to delete or purge old emails in cPanel

Last updated on |

Introduction

Managing email storage is an essential task for maintaining the performance and reliability of your hosting account. Over time, old emails can accumulate and consume significant disk space, potentially causing issues like exceeding storage limits or slowing down email services. cPanel, a popular web hosting control panel, offers tools to manage and delete old emails effectively.

This guide will provide a detailed walkthrough on purging old emails from cPanel to free up storage space. It is designed for users managing their email accounts on cPanel, particularly those who need to optimize storage due to hosting plan limitations or performance concerns. Common use cases include removing emails older than a specific date, clearing out bulk messages, or maintaining regular email hygiene.

The guide will cover built-in cPanel tools, such as the Email Disk Usage interface, and demonstrate how to configure email clients or use IMAP commands for advanced email management.

 

Prerequisites

  • Access to cPanel for your hosting account.
  • Active email accounts hosted on the cPanel server.
  • A basic understanding of the email accounts you want to manage.
  • Optional: An email client (e.g., Outlook, Thunderbird) if you prefer managing emails via an IMAP connection.
⚠️ Important Note: Deleting emails using this method is irreversible. Ensure you back up important emails before proceeding.

 

Step-by-step Guide

Step 1: Log in to cPanel

  1. Access your hosting provider’s cPanel interface by navigating to its URL, typically in the format https://yourdomain.com/cpanel or https://yourserverIP:2083.
  2. Enter your cPanel username and password to log in.

 

Step 2: Access the Email Disk Usage Interface

  1. In the cPanel dashboard, locate the Email section and click on Email Disk Usage.
  2. Select the email account you want to manage from the dropdown menu or by browsing through the list.

 

Step 3: Review Email Storage

  1. The Email Disk Usage page displays storage usage for the selected email account, sorted by folders such as Inbox, Sent, Junk, and Trash.
  2. Identify folders consuming significant disk space. Folders with the largest usage will be prioritized for cleanup.

 

Step 4: Delete Emails Using Filters

  1. On the Email Disk Usage page, scroll down to the section labeled Manage.
  2. Select the folder to purge, such as Inbox, Sent, or Trash.
  3. Choose the desired filter for deleting emails:
    • Messages older than 1 year
    • 30 MB in size or more
    • Custom queries (if supported by your hosting provider)
  4. Confirm your selection by clicking Free up space.

 

Step 5: Manually Delete Emails via Webmail (Optional)

  1. In cPanel, navigate to the Email Accounts section and access the webmail interface for the account.
  2. Use webmail clients like Roundcube or Horde to manually select and delete emails in bulk.
  3. Remember to empty the Trash folder after deletion to permanently remove the emails.

 

Step 6: Configure IMAP for Advanced Management (Optional)

  1. Set up your email account in an email client like Outlook, Thunderbird, or Apple Mail using IMAP settings.
  2. Create rules or filters in the email client to delete or archive old emails automatically.
  3. Sync changes to the server to free up disk space.

 

Step 7: Verify Email Storage

  1. Return to the Email Disk Usage interface in cPanel.
  2. Confirm that the storage usage has been reduced for the selected account and folders.

 

Conclusion

This guide has demonstrated how to delete or purge old emails in cPanel using the Email Disk Usage interface, webmail clients, and optional IMAP configurations. These steps help optimize email storage and maintain smooth email operations.

Should you have any inquiries about the guidelines, please feel free to open a ticket through your portal account or contact us at support@ipserverone.com. We’ll be happy to assist you further.