How to Fix 'Disk Quota Exceeded' and Identify Large Space-Consuming Files

51 views
Short answer: Empty the File Manager Trash folder, delete stale manual backup archives (.tar.gz) and bloated error_log files, or use cPanel Disk Usage to isolate space consumers.

Resolve upload crashes, database corruption alerts, and cPanel disk full errors by clearing error logs, emptying trash, and trimming bloated backup archives.

Before you start: Back up your site files and database and download the backup to your own computer. How to take a full backup

Quick reference

Primary Culprits 1. error_log files | 2. .trash directory | 3. wp-content/uploads/wc-logs | 4. Manual .zip backups
Inspection Tool cPanel > Files > Disk Usage
Critical Warning When quota is 100% full, MySQL queries crash and emails bounce

Quick diagnosis

Scenario & Suspected Cause Immediate Action & Remedy
Hidden File Manager trash bin accumulation Open cPanel File Manager, click 'View Trash', and empty deleted files permanently.
Old manual backup archives occupying space Locate and download obsolete .tar.gz and .zip archives from your home directory, then delete them.
Oversized error_log files Inspect and clean bloated error_log text files after downloading backup copies for diagnosis.
Abandoned mailbox storage bloat Use cPanel Email Disk Usage tool to purge junk, spam, and trash folders across email accounts.

Steps

  1. Inspect Disk Volume: Log in to cPanel and open Files > Disk Usage. Scroll down to see directory rankings sorted by size.
  2. Empty the Hidden .trash Folder:
    • Files deleted in File Manager without checking "Skip trash" are stored in /home/user/.trash.
    • In cPanel File Manager, click View Trash in the top toolbar > click Empty Trash.
  3. Find and Delete Gigabyte error_log Files:
    • Open public_html in File Manager.
    • Look for files named error_log. Recurring PHP errors can swell these files to multiple gigabytes.
    • Right-click and delete them (check Skip the trash and permanently delete the files).
  4. Clear Stale Backup Zips & Cache:
    • Remove old migration archives (backup-*.zip).
    • Delete old debug logs inside public_html/wp-content/uploads/wc-logs/.

Find Largest Files and Directories via SSH

# Find the 10 largest folders
du -sh ~/* | sort -hr | head -n 10

# Find files larger than 100 MB
find ~ -type f -size +100M -exec ls -lh {} \;

Troubleshooting and tips

  • Disk Still Shows 100% Full After Deleting Files: The cPanel quota daemon recalculates disk usage periodically (every 1-2 hours). You can force a recalculation by uploading and immediately deleting a 1KB file in File Manager.
  • Email Mailboxes Consuming Quota: Check cPanel > Email Accounts > Email Disk Usage. Large sent attachments or old spam mailboxes can fill your shared hosting disk.
Need more help? If you run into an error while following these steps, open a ticket with technical support and our team will look into it. Open a ticket
Was this article helpful?
No, I need more help
Didn't find your answer?
Under 3 minutes
Submit Support Ticket