Troubleshooting

cPanel disk space full: how to find what is using it and free space

Hit your cPanel disk quota? Learn how to find what is filling your account with Disk Usage, clean up backups, logs, email and caches, and stop the problem returning.

BeginnercPanel hosting2 min read

When your cPanel disk space is full, things break quietly: emails bounce with "mailbox quota exceeded", WordPress updates fail, uploads stop and databases can crash. The fix is to find what grew, remove what you do not need, and stop it filling up again. cPanel has the tools for all three.

Before you start

  • Log in to cPanel from Services in the MdmHost dashboard.
  • Download anything you want to keep before deleting it.

Symptoms of a full disk quota

  • The cPanel sidebar shows Disk Usage at or near 100%.
  • Email bounces or stops arriving; webmail cannot save drafts.
  • Errors like "Disk quota exceeded" or "No space left on device" in logs.
  • WordPress "Could not create directory" update errors.

Find what is using the space

  1. Open cPanel → Files → Disk Usage.
  2. Look at the table of top-level folders, sorted by size. Common culprits are public_html, mail, .trash and backup folders.
  3. Click a folder to drill down, or use File Manager and click the folder size column.
  4. Check database sizes in cPanel → Databases → MySQL Databases.

Free up disk space

  1. Delete old backups stored inside your account (for example backup-*.tar.gz in the home folder or plugin backup folders like wp-content/updraft or ai1wm-backups). MdmHost already takes daily JetBackup copies outside your quota.
  2. Empty the File Manager trash: File Manager → Trash → Empty Trash.
  3. Remove large error logs. Huge error_log files appear in site folders when a script throws errors constantly. Fix the error (see PHP errors and error_log), then delete the file.
  4. Clear cache folders such as wp-content/cache or litespeed through your cache plugin.
  5. Clean up mailboxes. In Email Accounts, sort by usage. Empty Trash and Spam folders, or use Email Disk Usage to delete old messages in bulk. See mailbox full.
  6. Optimise databases by removing post revisions, spam comments and expired transients on WordPress.

Note: Disk space and inodes are separate limits. Thousands of tiny cache or session files can hit the inode limit while disk usage looks fine.

Stop it happening again

  • Store website backups off-account or rely on JetBackup instead of plugin backups.
  • Set mailbox quotas and auto-delete rules for Spam and Trash.
  • Fix recurring PHP warnings so error_log does not grow.
  • If your site legitimately needs more space, upgrade the plan from the dashboard.

FAQ

Why does disk usage not drop after deleting files?

Files may be in the trash, or the usage figure updates after a short delay. Empty the trash and recheck later.

Do emails count towards disk space?

Yes, all mailboxes are part of the account's disk usage.

Is it safe to delete error_log files?

Yes, they are just logs. Fix the errors that create them first.

Next steps

Was this guide helpful?

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.