How to check disk usage in cPanel and free up space safely

Category: cPanel

When you receive a quota-full warning or your site shows errors, the first step is to identify which folders and files are consuming your storage. cPanel includes the Disk Usage tool that shows you a visual breakdown and helps you decide what you can safely delete.

This guide explains how to check disk usage in cPanel, interpret the results, and free up space without breaking your website or deleting important email.

Check disk usage from the cPanel home page

  1. Log in to cPanel.
  2. If your theme shows a statistics panel, look for the Disk Usage indicator to see how much space you have used out of your total allocation.
  3. Use that value as a quick warning: it tells you if you are near the limit, but it does not show where the usage is coming from yet.

To find large folders or files, open the full tool.

Open the full Disk Usage tool

  1. On the cPanel home page, locate the Files category.

  2. Click Disk Usage.

    Disk Usage tool in the Files category of cPanel

  3. The Disk Usage page loads a summary by location and a directory table.

    Disk Usage table with location, size, and usage bars in cPanel

At the top, you will see columns such as:

  • Location: folder or area of the account.
  • Size (MB): space used by that location.
  • Disk Usage: visual usage bar.

Farther down, the directory table uses columns such as Directory, Contained Disk Usage, MB, and Bytes so you can drill down in more detail.

Identify the folders consuming the most space

Review the list from top to bottom. The most common folders that consume space in shared accounts are:

  • mail: stores all email from email accounts. If you have accounts with years of uncleaned messages, this folder can grow large.
  • public_html: contains your website files. Look for subfolders like uploads, images, media, cache, tmp, or old backup folders.
  • backups: if you’ve generated manual backups from cPanel and haven’t downloaded or deleted them, they accumulate here.
  • .trash: email account trash. Deleted messages can remain here taking up space.
  • logs: server log files. In shared accounts, cPanel usually rotates these logs automatically, but check for large old logs.
  1. Click on any folder name in the Disk Usage table.
  2. The tool reloads and shows the contents of that folder, with the same breakdown.
  3. Keep clicking on subfolders until you find the large files or folders.

For example, if public_html takes up 2 GB, click on it. Then check if the site files folder takes up 1.8 GB. Inside that path, check uploads, media, or cache.

Which files you can delete

If your monthly report says “You can free up about X MB”, we found files nobody has touched in more than 45 days that are almost never needed on the server. These are safe to delete if you already have a copy on your computer or don’t need them anymore:

  • Loose compressed files: .zip, .tar.gz, .rar or .sql inside public_html or the main folder. They’re usually backups someone uploaded or created for a migration. Besides taking space, anyone who guesses the name can download them from the internet, database included.
  • Old copies of the site: folders like old, backup, old_site, public_html_old or wp-old. If there’s a WordPress inside, remove it from WP Toolkit (how) so its database is deleted too.
  • cPanel backups you already downloaded: the backup-*.tar.gz files in your main folder that you created with Backup Wizard. You don’t need them on the server: we make separate daily backups.
  • Very large error logs (error_log): don’t delete them blindly if you’re investigating an error. Otherwise you can empty them safely: PHP recreates them as soon as there’s a new error. In File Manager, select the error_log, click Edit, delete all the content and save.

Don’t delete unless you’re sure: the mail folder, wp-content/uploads (your site’s images), wp-config.php, .htaccess, or anything inside a folder you don’t know the origin of. In that case open a ticket and we’ll tell you whether it can go.

Email

  • Don’t delete the whole mail folder: it would break every email account.
  • Delete old messages or ones with heavy attachments from Webmail or your email app, and empty each account’s Trash. To see which mailbox takes the most, follow the guide to free up email space.

Delete files with File Manager

  1. From the cPanel home page, open File Manager.

  2. Go to the folder you found in Disk Usage.

  3. Select the files or folders (Ctrl+click or Cmd+click for several) and click Delete.

  4. In the Trash window, check Skip the trash and permanently delete the files if you already have a copy, and click Confirm. If you don’t check it, the files go to File Manager’s trash and keep taking space until you empty it: click View Trash and then Empty Trash.

    File Manager Trash window with the Skip the trash checkbox highlighted

If you deleted something by mistake and didn’t send it to the trash, we can recover it from the daily backup. See how to restore files you deleted.

Verify that you freed up space

  1. Return to the Disk Usage tool in cPanel.
  2. Reload the page.
  3. Check that the total used, the Size (MB) values, or the Disk Usage bars have dropped.

If the change doesn’t reflect immediately, wait a few minutes. cPanel updates disk statistics periodically.

Prevent the disk from filling up again

  • Clean email regularly: set up retention rules in your email client or delete old messages every month.
  • Optimize images before uploading: use compression tools or optimization plugins for your application.
  • Delete old backups: if you generate backups from cPanel, download them and delete them from the server.
  • Check cache plugins: configure size limits or automatic purging.
  • Monitor disk usage: check Disk Usage every month to detect abnormal growth.

What to do if you can’t free up enough space

If after cleaning you’re still near the limit, consider these options:

  • Move large files off the server: use external services to store backups, videos, or heavy media files.
  • Upgrade your hosting plan: if your site has grown and you need more storage, contact support to review upgrade options.

Still need help?

If this guide didn’t solve your issue, our team can help you via ticket.