Blog · WebJi® India

Reduce Inode Usage in cPanel

Quick answer: Inodes count files, not megabytes: every file, folder and email is one inode. Open cPanel and read the Inodes figure in the Statistics panel, find the heaviest folder with find and wc, then clear mail, cache and old backups. Disk space can be free while the inode count is at its cap.
✓ In business since 2005✓ INR + GST billing✓ 24/7 Email Support — avg reply < 60 min
Server rack with status lights beside a laptop showing a cPanel file count — reduce inode usage cpanel

What an inode is, and why free disk space does not help

Inodes count files, not megabytes: every file, folder and email is one inode. Open cPanel and read the Inodes figure in the Statistics panel, find the heaviest folder with find and wc, then clear mail, cache and old backups. Disk space can be free while the inode count is at its cap.

Your account gets a fixed number of inodes, and the limit is separate from the disk quota. A 40 MB mailbox of tiny alert emails can hold 20,000 inodes. A single 2 GB video holds one. That is why an account can show "2% disk used" and still fail to upload a file.

What you storeDisk usedInodes used
One 2 GB video2 GB1
20,000 alert emails at 2 KB each40 MB20,000
A WordPress install with 2,000 thumbnailsunder 1 GB2,000 plus core files
Ten old site backupsseveral GBthousands, all duplicates

Read the count and the limit in cPanel

cPanel shows the figure on the dashboard before you open any tool. Look at the right-hand Statistics column for the Inodes line, which reads as a number used against the cap.

  1. Log in to cPanel for the domain, not the billing area.
  2. Read the Inodes line in Statistics. If it is red or above 90%, act today.
  3. Open the File Usage or Disk Usage tool in the Files section, which breaks the account down by folder and shows the file count next to each one.
  4. If the panel has an Inode Usage icon, open it for a per-directory tree with counts.

The dashboard number and the folder tool sometimes disagree by a few hundred while a mailbox is being delivered. Reload after five minutes and read again.

Find the heavy folder before you delete anything

Deleting at random wastes an afternoon. One loop names the culprit in seconds. Open Terminal in cPanel, which drops you in your home directory, one level above public_html, and run this.

  1. In cPanel open Advanced, then Terminal.
  2. Run for d in */; do printf "%8s %s\n" "$(find "$d" | wc -l)" "$d"; done | sort -n. The left column is the file count, the right is the folder.
  3. The largest line is nearly always mail or public_html. Run cd mail and repeat, then go one level deeper until the count concentrates.
  4. In public_html, run the same loop to separate wp-content from a forgotten test install.
  5. Write the path down. That folder is the only one you need to clean today.

If Terminal is not available on the account, the File Usage tool gives the same answer with clicks instead of a command, and it is slower but accurate.

The usual hogs, and their paths

Five folders account for most inode warnings on a shared account. The path tells you which cleanup to run.

PathWhat it holdsTypical fix
mail/domain/user/cur and newEvery delivered message, one file eachEmail Disk Usage, delete by age or mailbox
mail/domain/user/.Trash and .spamDeleted and filtered mail nobody readsEmpty both folders
public_html/wp-content/cacheCached pages, one file per URLPurge from the caching plugin
public_html/backup or .zip filesFull-site archives, duplicated every monthDownload one, delete the rest
public_html/old-site or stagingA second install from a past projectArchive it and delete

Clean mail first, because it is reversible

Mail is the safest place to start: the messages are already on your phone or laptop if the mailbox uses IMAP, and cPanel has a tool that deletes by rule rather than by hand.

  1. Open Email, then Email Disk Usage in cPanel.
  2. Pick the mailbox that appeared in the folder audit, and read the message count per folder.
  3. Use "Delete messages with attachments older than 1 year" or "Delete messages older than 2 years", depending on what the audit showed.
  4. Empty Trash and spam for every mailbox, then re-read the Inodes figure.
  5. Export anything you need first: a mailbox can be archived from the mail client as a local folder before deletion.

You know it worked when the mail folder count drops in the Terminal loop and the cPanel Inodes line falls by thousands, not by dozens.

Clean files without breaking the site

File cleanup is where a quick win turns into a 500 error. Work in this order, and take a backup before the first deletion.

  1. Download a full backup or a copy of public_html to your machine, so a mistake is recoverable.
  2. Delete old archives: any .zip, .tar.gz or backup folder in the home directory that is older than the last good restore point.
  3. Purge caches from the plugin or the panel, not by deleting the folder by hand. Cache files regenerate, and a manual delete can log every visitor out.
  4. Remove unused installs, themes and plugins, including the staging copy nobody has opened since launch.
  5. Rotate logs: error_log and access logs in cPanel, and any debug.log in wp-content that has grown past a few megabytes.

The thumbnail folder is the usual surprise inside wp-content/uploads. A plugin that regenerates thumbnails at fewer sizes can cut tens of thousands of files, and it does the work in one pass.

When to ask for a limit increase or move to a VPS

A limit increase is a temporary answer to a structural problem. If the audit shows 60,000 inodes in mail that the business must keep, the account needs a bigger allowance or a different product, not another cleanup.

  • Email support@webji.services with the folder count and the plan name, and ask what the account's cap is and whether a higher tier exists.
  • Move mail older than a year to a local archive on a schedule, so the count stops climbing back.
  • Move a second site or a staging copy to its own account or a VPS, which is usually not inode-metered at all.
  • Keep backups off the hosting account. A backup that lives on the same disk is both a copy and hundreds of inodes.

Support is 24/7 by email in Hindi and English, and the average first reply is under 60 minutes. WebJi® cPanel hosting plans set the inode cap per plan, and support confirms the number for your account rather than a generic figure. The what an inode is page covers the filesystem side, and repairing a MySQL table is the next stop if the cleanup left a database error behind.

Frequently Asked Questions

What are inodes in cPanel hosting?

An inode is the filesystem record for one file, folder, email or symlink. Your account gets a fixed number of them, separate from the disk quota. A million tiny files cost a million inodes; one huge video costs one. That is why the two limits fail at different times.

Why is my inode usage so high with disk space free?

Because file count and file size are different limits. A mailbox full of small notifications, a cache folder with one file per URL, and a stack of old site archives each add thousands of inodes while using very little disk. Run the folder count before assuming the site itself is the cause.

How do I reduce inodes in cPanel?

Find the heavy folder first, then clean in this order: mail through Email Disk Usage, cache through the caching plugin, old backups and archives, unused installs and themes, then logs. Re-read the Inodes figure after each step so you know which one actually helped.

What happens if I exceed my inode limit?

New files stop being written, which usually shows as a 503 error or a failed upload, and incoming mail can be rejected. Some hosts suspend the account until the count drops. The fix is the same either way: reduce the count, or move the account to a plan or server without the cap.

Do emails count as inodes?

Yes. Each message is a separate file in the mailbox folder, so 20,000 saved messages are 20,000 inodes before attachments. Trash and spam count too, which is why emptying both is the fastest first win on a mail-heavy account.

How do I find the folders with the most files?

Open Terminal in cPanel and run a loop over the top-level folders that prints a file count beside each name, sorted ascending. The last lines are the heavy ones. Repeat inside that folder until the count concentrates, then clean that path rather than the whole account.

Need help with this?

WebJi® support does it for you — free. Talk to our Jaipur team →