cPanel

Inodes and disk quota in cPanel: what they are and how to reduce them

Learn what inodes (file usage) and disk quota mean on cPanel hosting, why you can hit the inode limit with free space left, and how to find and remove excess files.

BeginnercPanel hosting2 min read

cPanel accounts have two storage limits: the disk quota (how many megabytes you store) and inodes, shown as File Usage (how many files and folders you have). Every file, folder, email message and cache entry uses one inode. When either limit is reached, the account behaves as if the disk is full.

Before you start

  • Look at the Statistics panel on the cPanel home page. Disk Usage and File Usage show current use and the limit of your plan.

What happens at the limit

  • Uploads and plugin updates fail with "Disk quota exceeded".
  • New email is not delivered and bounces with a quota error.
  • Sessions and caches cannot be written, so logins and carts break.
  • cPanel itself may show errors or fail to save settings.

Find folders with many files

The Disk Usage tool shows size, not file count. To count files per folder, open Terminal and run:

for d in ~/* ~/.[!.]*; do echo "$(find "$d" | wc -l) $d"; done | sort -n | tail -15

Then drill into the biggest folder, for example:

for d in ~/public_html/wp-content/*; do echo "$(find "$d" | wc -l) $d"; done | sort -n

Common causes and fixes

CauseFix
Page cache folders (wp-content/cache, lscache)Purge cache; set a sensible cache lifetime
PHP sessions in tmpRemove old files; usually cleared automatically
Mail: thousands of messages, especially in Spam and TrashClean with Email Disk Usage; enable Spam auto-delete
Old backups and unpacked archivesDownload and delete
Unused test installs and staging copiesRemove them, e.g. with Softaculous Remove
node_modules or vendor foldersDelete ones not needed at runtime; build locally
Image thumbnails generated in many sizesDisable unused sizes, regenerate thumbnails

Warning: Do not delete files you do not recognise in etc, mail, .cpanel or ssl. They hold your account configuration. Ask support if unsure.

Remove many files quickly

File Manager is slow for tens of thousands of files and sends them to Trash first. In Terminal, removing a cache folder is instant:

rm -rf ~/public_html/wp-content/cache/*

Double-check the path before pressing Enter. Remember that File Manager deletions go to .trash, which still counts until you empty it.

Keep usage low

  • Store backups off the account (download them, or rely on MdmHost's daily JetBackup).
  • Delete spam regularly and set mailbox quotas.
  • Remove unused plugins, themes and old sites.
  • If your site simply needs more, move to a bigger plan on the web hosting page.

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.