Tips & Tricks

How to Monitor Disk Usage in cPanel and Free Up Space

by dotCanada Team
How to Monitor Disk Usage in cPanel and Free Up Space

Disk space is one of those hosting resources that gets ignored until it becomes a crisis. On most shared hosting accounts, crossing the disk limit does not result in a polite warning - it results in your website returning errors, your contact forms silently failing, and your email bouncing. The good news is that cPanel gives you the tools to stay on top of it, and most hosting accounts are filled with things that can be safely deleted.

Finding the Disk Usage Tool

Log in to cPanel and scroll to the Files section. Click Disk Usage. Give it a moment to calculate - on accounts with a lot of data, it can take 30 to 60 seconds.

What you see is a sortable table of your directories sorted by size, and below that, a treemap visualization - a colour-coded block diagram where larger blocks represent larger directories. The treemap gives you an immediate visual sense of where your space is going.

Your public_html folder contains your website files. Other directories - mail, logs, backups - are often significant contributors that website owners forget about entirely.

Common Space Hogs

Email storage

This is the most common culprit on accounts that have been running for a few years. If your email accounts are configured to store messages on the server (IMAP mode), every email you receive and every email in your Sent folder is consuming hosting disk space. Spam folders, in particular, accumulate thousands of messages that nobody deletes.

In cPanel, go to Email > Email Disk Usage to see exactly which email accounts are consuming the most space. Log in to your webmail (or connect an email client) and purge spam, trash, and any folders you no longer need.

Old backups

If you have been manually generating full account backups in cPanel, they are stored in your home directory and can easily be several gigabytes each. These are fine to have - the problem is when there are five of them from over the past year and nobody has cleaned them up.

Go to File Manager, navigate to your home directory (one level above public_html), and look for .tar.gz files with names like backup-12.3.2024_yourdomain.com.tar.gz. Download the most recent one to your local computer, then delete the server copies.

Unoptimized uploaded images

WordPress media libraries on sites that have been running for a few years often contain hundreds or thousands of unoptimized images - plus WordPress-generated thumbnails in multiple sizes for every image ever uploaded. An image uploaded at 4MB and stored unoptimized, multiplied by 500 images, is 2GB just in your media library.

Use a plugin like ShortPixel, Imagify, or Smush to bulk-compress your existing media library. You can recover significant space without deleting a single image.

WordPress log files and debug files

If WordPress debug mode has ever been enabled on your site, there may be a large debug.log file in your wp-content folder. Check its size in File Manager - it can grow into the gigabytes on busy sites. If you are not actively debugging, delete it and make sure WP_DEBUG_LOG is set to false in your wp-config.php.

Plugin and theme leftovers

Deleted plugins sometimes leave behind folders in wp-content/plugins. Themes you tested once and removed may still have their directory sitting there. Open File Manager and browse your plugins and themes folders to confirm they match what you actually have installed.

Emptying Trash in cPanel

When you delete files in cPanel's File Manager, they go to a trash folder rather than being immediately removed. Periodically empty this trash to actually reclaim the space.

In File Manager, look for the Trash folder icon in the left panel. Right-click it and select Empty Trash.

Preventing Future Disk Issues

Set a recurring reminder to check disk usage every few months. Most hosting accounts have a usage meter visible right in the cPanel sidebar - glance at it when you log in.

If your account is consistently over 80% full, that is a signal to either clean up aggressively or upgrade your plan. Operating near the limit causes problems: backups fail, email bounces, and some databases refuse writes. Give yourself room to breathe.

On dotCanada hosting, you can monitor your disk usage at any time from the cPanel sidebar and contact support if you need help identifying what is eating your space.

100% Satisfaction Guarantee

We're so confident you'll love dotCanada that we offer a 30-day money-back guarantee. Not satisfied? Get a full refund, no questions asked.

Ready to Get Started?

Join thousands of Canadian website owners who trust dotCanada for reliable, fast web hosting.

Get Started Today