cPanel

Find what uses disk space in cPanel (Disk Usage tool)

Use cPanel Disk Usage to see which folders, mailboxes and databases fill your hosting space, find hidden large files, and safely free up storage.

BeginnercPanel hosting2 min read

When cPanel warns that you are close to your disk quota, uploads fail, email stops arriving and some apps break. The Disk Usage tool shows exactly which folders, mailboxes and databases take the space so you can clean up the right things instead of guessing.

Before you start

  • Check your current use in the Statistics panel on the cPanel home page: Disk Usage and File Usage (inodes).
  • Before deleting anything you might need, download it or make a backup. MdmHost keeps daily JetBackup copies, but deleted files are only recoverable from the last backup.

Open Disk Usage

  1. Go to cPanel → Files → Disk Usage.
  2. The top table lists the main folders in your home directory with their size and a bar chart, plus separate rows for MySQL databases, Mailing lists and other system items.
  3. Scroll down to the directory tree. Click the folder icons to expand folders; sizes are shown for each. Use Sort directories by: Disk Usage to put the largest first.

Note: Disk Usage results are cached. If you just deleted files, it may take a little while before the numbers update.

Usual space eaters and how to clean them

LocationWhat it isWhat to do
mailAll mailboxesUse Email Disk Usage to delete old mail, Trash and Spam
public_html/wp-content/uploadsWordPress mediaRemove unused media, optimise images
public_html/wp-content/ai1wm-backups, updraft, backupsPlugin backups stored on the accountDownload and delete; daily JetBackup already protects you
backup-*.tar.gz in homeFull cPanel backups you generatedDownload, then delete
public_html/wp-content/cache, lscachePage cachesPurge from the cache plugin
softaculous_backupsSoftaculous app backupsRemove old ones in Softaculous backups
logs, error_log filesAccess archives and PHP error logsDelete large error_log files after fixing the errors
.trashFile Manager trashFile Manager → View Trash → Empty Trash
MySQL databasesSite data, logs, sessionsClean plugin log tables, spam comments, transients

Find hidden large files

File Manager hides dotfiles by default. Click Settings (top right) and tick Show Hidden Files (dotfiles). Or in Terminal:

find ~ -type f -size +100M -exec ls -lh {} \; 2>/dev/null

This lists files over 100 MB anywhere in your account.

Disk space versus inodes

Your plan also limits the number of files (inodes). Thousands of tiny cache or session files can hit that limit while the space looks fine. See inodes and quota limits in cPanel.

Troubleshooting

  • Usage does not drop after deleting in File Manager: files went to .trash; empty it.
  • Numbers in Disk Usage and Statistics differ: Statistics includes everything owned by your user (databases, mail) and updates on a schedule.
  • Still out of space: consider a larger plan; see web hosting plans, or contact support.

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.