When a cPanel account runs out of disk space, things fail in odd ways. Uploads stop, WordPress cannot update, email bounces or stops arriving, and you may see Write failed: disk quota exceeded. cPanel’s documentation also warns that backups of an account near or over its quota may fail, because the system cannot write the files it needs. That last one is easy to miss until you need a backup.
The fix is to find out what is actually using the space, which is rarely the website itself. This guide uses the tools in cPanel to find it, then covers the usual culprits and how to clear them safely.
Step 1: see what is using the space
Open Files » Disk Usage in cPanel. It lists the folders in your account with a bar for each, sized relative to the largest. Click a folder name to open it in File Manager and keep drilling down.
A few things to know about the numbers, from cPanel’s documentation:
- Your MySQL and PostgreSQL databases count towards your disk usage.
- Files usually take slightly more space on disk than their size: a 300-byte file can use 4 KB.
- The figures are cached, so they may not reflect what you deleted a few minutes ago.
With SSH access, this lists the biggest folders in your home directory, largest last:
du -h --max-depth=1 ~ 2>/dev/null | sort -h
And this finds single files over 100 MB:
find ~ -type f -size +100M -exec ls -lh {} \; 2>/dev/null
The usual culprits
1. Email
Mailboxes are often the biggest folder in an account, especially when an address has collected years of attachments, or a catch-all address receives spam. Open Email » Email Disk Usage. It lists each mailbox and folder with its size, sortable by size. Click Manage on a mailbox to delete, for example, messages that are a year old or more, messages of 30 MB or more, or everything in a folder such as Spam or Trash. You can also enter your own query, such as LARGER 10M.
Deletion is permanent. If you need to keep old mail, download it with an email program first. For a long-term fix, set a quota per mailbox in Email Accounts, so one address cannot fill the whole account.
2. Old backup files in your home directory
A full backup made with cPanel’s Backup Wizard and saved to Home Directory is stored in /home/username as a .tar.gz file named backup- plus the date. Each one is roughly the size of your whole account, and they are easy to forget. Download any you want to keep to your computer, then delete them from the server. Backup plugins in WordPress can do the same thing inside wp-content; look for folders such as backups or updraft.
The daily JetBackup backups on our hosting are stored on separate backup storage, not in your home directory, so they do not use your disk space. You can restore from them yourself, as shown in our guide to restoring from JetBackup 5.
3. The File Manager trash
When you delete files in cPanel’s File Manager, they are not removed: they move to the Trash folder, and still count towards your quota. Click View Trash in File Manager, check nothing in it is needed, and click Empty Trash.
4. Log files
PHP writes errors to error_log files in your site’s folders, and a script that throws the same warning on every page view can grow one to hundreds of megabytes. Find them with:
find ~/public_html -name error_log -size +10M -exec ls -lh {} \;
Read the last lines first, because a huge log means something is going wrong and should be fixed. Then empty it rather than leaving it to grow. In WordPress, also check wp-content/debug.log, which keeps growing if WP_DEBUG_LOG was left on.
5. Caches and leftovers
- Cache folders inside
wp-content/cache(or your cache plugin’s folder). Clear the cache from the plugin rather than deleting files by hand. - Old copies of sites:
public_html/old,backuportestfolders, or a staging copy you no longer use. - Unused WordPress themes and plugins, and old image sizes from themes you no longer use.
- Databases you do not use any more, listed in Manage My Databases. Back them up before you delete them.
Disk space is not the only limit: file count
Many hosting plans also limit the number of files and folders, often called inodes. Every email message, cached page and thumbnail is a file, so an account can hit the file limit long before it is out of space. The Statistics panel on the cPanel home page shows File Usage next to Disk Usage. The cleanup is the same: old mail, caches and backup folders hold the most files.
Stop it happening again
- Set mailbox quotas, and delete spam and trash folders on a schedule.
- Keep backups off the account. Download the ones you make yourself.
- Fix the warnings that fill
error_loginstead of just deleting the file. - Check Disk Usage once a month, before the account is full.
If the space you are using is genuine, such as a growing shop or a large media library, cleaning up only buys time. Moving to a bigger plan is the real fix.
Frequently asked questions
What does “disk quota exceeded” mean in cPanel?
Your account has used all the disk space its plan allows. No more files can be saved until you free some space or move to a larger plan.
Does email count towards cPanel disk space?
Yes. Mailboxes are stored in your account and are often the largest user of space. Use Email Disk Usage to find and clear the big ones.
Do databases count towards my disk usage?
Yes. cPanel includes MySQL and PostgreSQL database sizes in the account’s disk usage.
Why has my disk usage not gone down after deleting files?
Files deleted in File Manager go to the Trash until you empty it, and the Disk Usage figures are cached, so they can take a while to update.
How do I find large files in cPanel?
Use Files » Disk Usage and click into the largest folders. With SSH, du -h --max-depth=1 ~ | sort -h lists folders by size and find ~ -type f -size +100M finds large files.
More room when you need it
Our shared hosting plans run on NVMe storage with daily JetBackup backups, and you can move to a larger plan when a site outgrows its space. For larger sites, WordPress hosting or a VPS gives you more room to grow. Not sure what is filling your account? Open a ticket and we will look at it with you.
Tags:
Related articles
How to restore a file, database or email account from JetBackup 5 in cPanel
Restore one file, a database with its user, a mailbox or the whole account from JetBackup 5 in cPanel, and choose the right backup first.
Read More →How to set up SPF, DKIM and DMARC in cPanel so Gmail, Yahoo and Outlook deliver your mail
Set up the three records in cPanel’s Email Deliverability tool so your mail reaches the inbox.
Read More →



