How to fix Disk quota exceeded and free up space in cPanel
This guide explains how to fix the "Disk quota exceeded" error and free up space in cPanel. When your hosting account reaches its disk limit, strange things start to happen: you cannot upload files, WordPress fails to update, the site may show errors, and new emails bounce with a "mailbox full" or "over quota" message. The fix is to find what is using the space and clean it up, or move to a bigger plan.
Step 1: Check your usage
- Log in to cPanel. The right-hand Statistics panel shows Disk Usage and File Usage (inodes, the number of files).
- Open Disk Usage in the Files section. It lists folders by size; sort by size and expand the biggest ones.
- Open Email Disk Usage in the Email section to see which mailboxes are the largest.
Step 2: Find large files with Terminal (optional)
If you have Terminal or SSH access, these read-only commands show where the space goes:
du -sh ~/* ~/.[!.]* 2>/dev/null | sort -h | tail -20
find ~ -type f -size +100M -exec ls -lh {} \; 2>/dev/null
find ~/public_html -name error_log -size +10M -exec ls -lh {} \; Step 3: Clean up the usual suspects
- Old backups: full backup files (
backup-*.tar.gz) in your home folder, and plugin backup folders such aswp-content/updraft,wp-content/ai1wm-backupsorsoftaculous_backups. Download the ones you want to keep to your computer, then delete them from the server. See how to back up and restore your website. - Huge error_log files: a PHP warning that repeats thousands of times can create a multi-gigabyte log. Delete the file, then fix the error that fills it.
- File Manager trash: files deleted in File Manager go to
.trash. Click View Trash and then Empty Trash. - Email: big mailboxes, especially Sent and Trash folders with attachments. Delete old messages in webmail, empty Trash and Spam, or archive old mail to your computer. You can also set a lower quota per mailbox so one account cannot fill the whole plan.
- Cache and temporary files: old cache folders from plugins,
~/tmp, and unused themes and plugins. - Old copies of the site: folders like
public_html/old,site-backupor test installations nobody uses.
public_html, mail or etc; ask us first. Never delete the mail or etc folders themselves.Step 4: Check the result
The usage figures in cPanel can take a few minutes to update. After that, try uploading or sending an email again.
Tips to prevent it
- Set backup plugins to keep only the last 1–2 copies, or send them to cloud storage.
- Make sure the contact email in cPanel Contact Information is set, so you get the disk-usage warnings early.
- Compress images before uploading, and do not store large videos on hosting; use YouTube or cloud storage.
Frequently asked questions
I deleted files but the space did not change. Why?
The counter refreshes after a short delay, and files in .trash still count. Empty the trash and wait a few minutes.
What is the "File Usage" or inode limit?
It limits the number of files, not their size. Thousands of small cache files or emails can hit it even with free disk space.
When should I upgrade instead of cleaning?
If your real content (site files, database and needed emails) is close to the limit, upgrade your hosting plan. Compare plans on our hosting page.