# How to empty folders and delete emails in email accounts via cPanel?

The use of email accounts can consume a lot of space in the hosting account.

Below, we will show you how to empty mailboxes and delete emails in your email accounts according to certain criteria.

There are two main methods to delete emails and empty mailboxes quickly. Choose the method you want to use below:

* [**Delete Emails from cPanel Control Panel**](https://github.com/sitioshispanos/gitbook-helpdesk-en/blob/master/guias/paneles-de-control/panel-de-control-cpanel/correo-electronico/herramientas-utiles/empty-mailboxes-and-delete-emails-in-cpanel-email-accounts.md#delete-emails-from-cpanel-control-panel)
* [**Delete Emails from Webmail**](https://github.com/sitioshispanos/gitbook-helpdesk-en/blob/master/guias/paneles-de-control/panel-de-control-cpanel/correo-electronico/herramientas-utiles/empty-mailboxes-and-delete-emails-in-cpanel-email-accounts.md#delete-emails-from-webmail)

## Delete Emails from cPanel Control Panel

* This method requires accessing the cPanel control panel. If you don't know how to access it, you can find the steps in [this link](https://github.com/sitioshispanos/gitbook-helpdesk-en/blob/master/guias/paneles-de-control/panel-de-control-cpanel/accessing-cpanel.md).
* Once in the control panel, you need to go to the **Email Disk Usage** option under the **Email** section.

<figure><img src="https://github.com/sitioshispanos/gitbook-helpdesk-en/blob/master/.gitbook/assets/DeleteEmails01.png" alt=""><figcaption></figcaption></figure>

* In the **Email Disk Usage** interface, you will find:

1. A dropdown menu with all your mailboxes. You will also see the system mailbox or **Catch All** mailbox.
2. Below, there is a search box to find specific mailboxes within a chosen mailbox.
3. Next, you will see the information box with mailboxes, number of messages, and space occupied by the selected email account.
4. In the **Actions** column, you will find the **Manage** link for each mailbox that has content.

<figure><img src="https://github.com/sitioshispanos/gitbook-helpdesk-en/blob/master/.gitbook/assets/DeleteEmails02.png" alt=""><figcaption></figcaption></figure>

5. Click on **Manage** for the mailbox from which you want to delete emails. This will display options with criteria for deleting its content.
6. You will see a dropdown menu with criteria for deleting the content. For example, you can delete emails older than 1 year.
7. By pressing the **Permanently Delete** button, you will delete the emails from the selected mailbox based on the chosen criteria. Emails from other mailboxes or folders will not be deleted.

<figure><img src="https://github.com/sitioshispanos/gitbook-helpdesk-en/blob/master/.gitbook/assets/DeleteEmails03.png" alt=""><figcaption></figcaption></figure>

## Delete Emails from Webmail

* This method requires accessing the Webmail of the mailboxes you want to clean. If you don't know how to access it, you can find the steps in [this link](/menu-principal/guias/correo-electronico/acceso-a-las-casillas-de-correo-via-webmail/cpanel-webmail.md).
* In the Webmail panel of the specific mailbox, you should go to the **Manage Disk Usage** option at the bottom of the screen.

<figure><img src="/files/9ZR9XtoYZOvj6OGkDzyM" alt=""><figcaption></figcaption></figure>

* In the **Manage Disk Usage** interface, you will find:

1. A search box to filter specific mailboxes of the email account.
2. The information box with mailboxes, number of emails, and space occupied by each mailbox.
3. For mailboxes with content, you will see the **Manage** link. Click on it to open the email deletion options.

<figure><img src="https://github.com/sitioshispanos/gitbook-helpdesk-en/blob/master/.gitbook/assets/DeleteEmails05.png" alt=""><figcaption></figcaption></figure>

4. You will see a dropdown menu with criteria for deleting emails from the selected mailbox. For instance, you can delete emails older than 1 year.
5. By pressing the **Permanently Delete** button, you will delete the emails from the mailbox that meet the selected criterion. Emails from other mailboxes or folders will not be deleted.

<figure><img src="https://github.com/sitioshispanos/gitbook-helpdesk-en/blob/master/.gitbook/assets/DeleteEmails04.png" alt=""><figcaption></figcaption></figure>

There is one last method to delete emails via **Webmail**, but this method **will delete all emails from the selected mailbox**. Here are the steps:

1. When accessing an email account via Webmail, select the mailbox from which you want to delete all its contents.
2. Then, click on the three vertical dots button to the right of the mailbox name.
3. In the options menu, select **Empty**.

<figure><img src="/files/FAlPFEANBsbOToxiL95q" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
This method will delete all emails from the selected mailbox.\
It is very useful for clearing the trash, spam folder, or the content of the system mailbox or Catch All mailbox.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.sitioshispanos.com/menu-principal/guias/correo-electronico/herramientas-y-opciones-de-correo-utiles/como-vaciar-bandejas-y-borrar-mails-en-las-casillas-de-correo-en-cpanel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
