# Mailbox full: how to clean up old email and raise the quota with cPanel Email Disk Usage

https://www.gyrohosting.com/en/knowledgebase/article/mailbox-full-email-disk-usage

- **What you will learn**: How to tell that a mailbox is full, delete old or large email folder by folder with cPanel's **Email Disk Usage** tool, use a custom query, and raise the mailbox quota if needed.
- **Time**: 10 minutes

## 1. How do I know the mailbox is full?

- People who write to you get an error such as "mailbox full", "Quota exceeded" or a 452/552 code.
- Webmail or Outlook cannot save your sent messages to the **Sent** folder.
- In cPanel, the usage bar for the account on the **Email Accounts** list looks full.

New mail is not delivered to a full mailbox; the sender gets an error. So you need a quick cleanup or a quota increase.

## 2. Which folder is taking up space?

1. On the cPanel home page, open **Email Disk Usage** in the **Email** section.

![The Email Disk Usage tool is in the Email section of the cPanel home page.](https://www.gyrohosting.com/resources/uploads/bilgi-merkezi/B28-01-en.webp)

1. In the **Account** list, choose the email account you want to clean up (for example `info@ornekfirma.com`).
2. The table lists the account's folders with **# of Messages** and **Disk Usage**. Click a column heading to bring the largest folder to the top.
3. Folders that contain messages have a **Manage** link on their row.

![Choose the account; folders are listed with their message count and size.](https://www.gyrohosting.com/resources/uploads/bilgi-merkezi/B28-02-en.webp)

> **Tip**
> 
> The folders that take up the most space are usually **INBOX**, **Sent** (with its attachments) and **Trash**. Messages you delete in Webmail go to Trash and keep taking up space.

## 3. Delete old or large messages

1. Click **Manage** on the row of the folder you want to clean up. A **Messages to delete** list opens below it.
2. Choose which messages to delete:
  - **1 year old or more:** Messages older than one year.
  - **30 MB in size or more:** Messages of 30 MB or more (large attachments).
  - **Previously viewed:** Messages that have already been read.
  - **All messages:** Every message in the folder.
  - **Custom query …:** Your own condition (below).
3. Click **Delete Permanently**.

![Clicking Manage opens a list where you choose which messages to delete.](https://www.gyrohosting.com/resources/uploads/bilgi-merkezi/B28-03-en.webp)

> **Caution**
> 
> **Delete Permanently** deletes immediately without asking for confirmation, and deleted messages cannot be recovered; they do not go to Trash either. If you need to keep any correspondence, back it up to your computer first (for example with Outlook's export), or start by cleaning only the **Trash** folder.

**Custom query**

1. If the ready-made options are not enough, choose **Custom query …** from the list; a query field opens next to it.
2. Type the condition, for example `savedbefore 26weeks` (messages older than 26 weeks), and click **Delete Permanently**.

![With Custom query you write your own condition; here, messages older than 26 weeks.](https://www.gyrohosting.com/resources/uploads/bilgi-merkezi/B28-04-en.webp)

Commonly used queries:

![Commonly used custom query expressions.](https://www.gyrohosting.com/resources/uploads/bilgi-merkezi/B28-05-en.webp)

| Goal | Query |
| --- | --- |
| Older than about 6 months | `savedbefore 26weeks` |
| Larger than 10 MB | `larger 10M` |
| Read and older than 8 weeks | `seen savedbefore 8weeks` |
| Before a specific date | `before 2025-01-01` |
| From a specific sender | `from bulten@example.com` |

1. When the operation finishes, a green **Success** notice appears at the top right and the folder's **Disk Usage** value is updated.

![When the operation finishes a green notice appears and the folder size is updated.](https://www.gyrohosting.com/resources/uploads/bilgi-merkezi/B28-06-en.webp)

## 4. Raise the quota

If cleanup is not enough, or the mailbox naturally keeps growing, you can raise its quota.

1. In cPanel, open **Email Accounts** and click **Manage** on the account's row.
2. In the **Storage** section, **Current Storage Usage** shows how much is used.
3. Enter the new quota in MB or GB in **Allocated Storage Space**. If your plan allows it, there is also an **Unlimited** option.
4. Click **Update Email Settings** at the bottom of the page.

![To raise the quota, enter the new value in Allocated Storage Space.](https://www.gyrohosting.com/resources/uploads/bilgi-merkezi/B28-07-en.webp)

> **Note**
> 
> Mailboxes use your hosting plan's disk space. Raising a quota does not increase the total space in your plan; if the plan's disk is full, clean up first or consider moving to a larger plan, depending on your plan.

## 5. Check

1. Refresh the **Email Disk Usage** page and confirm the folder sizes have gone down.
2. On the **Email Accounts** list, check that the account's usage bar has emptied.
3. Send a short test message to the mailbox from another address; it should be delivered without an error.

## 6. Common problems

| Symptom | Cause | Fix |
| --- | --- | --- |
| I deleted mail but usage did not go down | The messages were deleted in Webmail and are waiting in Trash | Clean the **Trash** folder with **All messages**. |
| A folder has no **Manage** link | The folder has no messages | Check another folder; an empty folder takes no space. |
| The custom query gives an error | Wrong query format | Use the examples in the table; dates are written `YYYY-MM-DD`. |
| I cannot raise the quota | Not enough disk space left in your plan | Clean up other mailboxes or files in the plan first. |
| Deleted messages came back in Outlook | The account is set up with POP3 and the mail is on the computer | Set it up with IMAP (B23); the mailbox on the server must be cleaned separately. |
| Senders still get "mailbox full" | The mailbox filled up again | If a forwarder leaves copies (B26), plan regular cleanups. |

## 7. Frequently asked questions

**Can I recover messages deleted with Email Disk Usage?**

No. Deletion is permanent and the messages do not go to Trash. Back up important correspondence before deleting.

**Which folder should I clean first?**

**Trash** and **Junk** first; then large messages with attachments in **Sent** (`larger 10M`); and finally old messages in **INBOX**.

**Should I set the quota to Unlimited?**

You can if your plan allows it, but the mailbox still uses the plan's disk space. A mailbox growing without limit can affect your other mailboxes and your website; a sensible quota is safer.

**How do I find large attachments?**

Clean the folder with **30 MB in size or more** or the `larger 10M` query. If you want to keep the attachments, download them from Webmail first (B22).

**Can cleanup run automatically?**

Email Disk Usage runs once each time you use it. To stop spam and junk from piling up, you can turn on automatic deletion in the spam filter (B29).

**Is incoming mail lost when the mailbox is full?**

It is not delivered to you and the sender gets an error. Once you free up space, the sender has to send it again.

> **Did you know?**
> 
> If your team works with large attachments and mailboxes fill up often, see the plans of Business Mail, a separate product from hosting email, in guide G01.

## Related guides

- B21: Creating an email account in cPanel
- B22: Logging in to Webmail and using Roundcube
- B26: Email forwarders and autoresponders
- B29: Spam filters, blocklists and allowlists
- B30: My email was not delivered: Track Delivery
