How to delete mails inside mail list of cpanel

To delete emails inside a mail list in cPanel, you can follow these steps:

Method 1: Using the Mail Client

  1. Log in to your cPanel account.
  2. Click on the "Email" section and select "Mail Client" from the drop-down menu.
  3. Select the mail list you want to delete emails from.
  4. Click on the "Delete" button next to the email you want to delete.
  5. Confirm that you want to delete the email by clicking "OK".

Method 2: Using the Email Accounts section

  1. Log in to your cPanel account.
  2. Click on the "Email" section and select "Email Accounts" from the drop-down menu.
  3. Click on the "Manage" button next to the email account that contains the mail list.
  4. Click on the "Mailboxes" tab.
  5. Select the mail list you want to delete emails from.
  6. Click on the "Delete" button next to the email you want to delete.
  7. Confirm that you want to delete the email by clicking "OK".

Method 3: Using the Command Line

  1. Log in to your cPanel account using SSH.
  2. Use the following command to delete an email from a mail list: mailq -d <email_address>
    • Replace <email_address> with the email address you want to delete.
  3. Press Enter to execute the command.
  4. Confirm that you want to delete the email by typing y and pressing Enter.

Note: The mailq command is used to manage the mail queue, and the -d option is used to delete an email from the queue.