WordPress

Free up disk space used by WordPress

Find out what fills your hosting disk and clean it safely: old backups, cache and log files, unused media and image sizes, staging copies and email in the same account.

BeginnercPanel hosting3 min read

When a hosting account reaches its disk quota, uploads fail, updates stop halfway and email can bounce. WordPress sites grow quietly through backup archives, caches and media. This guide shows how to find what is using the space and what is safe to remove.

Before you start

  • Check your usage on the cPanel home screen under General Information → Disk Usage.
  • Make sure a recent JetBackup restore point exists before deleting anything (cPanel → JetBackup).

Find the large folders

  1. Open cPanel → Files → Disk Usage.
  2. Look at the folder tree; it shows size per folder, including public_html, mail and hidden folders.
  3. Drill down into the largest items. In File Manager you can also click Settings and show hidden files to see folders such as .trash.

Over SSH this lists the 20 largest folders in your site:

du -h --max-depth=3 ~/public_html | sort -hr | head -20

Common space hogs

LocationWhat it isSafe action
wp-content/updraft, ai1wm-backups, backups-dup-liteBackup plugin archivesDownload what you need, delete old archives, send future backups off-site
wp-content/cache, litespeedCache filesPurge from the cache plugin
error_log, debug.logLog filesDelete, fix the errors, turn off debug logging
wp-content/uploadsMedia and thumbnailsOptimise images, remove unused sizes
Old staging or copy foldersForgotten site copiesDelete folder and its database
.trash in your home folderFiles deleted in File ManagerEmpty it in File Manager
mailMailboxesDelete old mail or set quotas

Clean up backup archives

Backup plugins storing archives inside the site are the most common cause of full disks, and those archives are also copied into every server backup. Since MdmHost already takes daily JetBackup backups, set your plugin to store copies in remote storage only and delete local archives.

Empty the File Manager trash

Files deleted in File Manager without Skip the trash go to .trash and still count against your quota. In File Manager click View Trash and then Empty Trash.

Reduce media size

  • Optimise images and remove backup originals once you are happy with the result.
  • Remove thumbnail sizes you do not use in Settings → Media and with a regeneration plugin.
  • Host videos on a streaming service rather than in the media library.

Check the database and email

Databases count too: see their sizes in cPanel → Databases → Manage My Databases. Large mailboxes are listed in cPanel → Email → Email Accounts with their usage; clean old messages or archive them locally.

Check the result

Disk usage figures can take a little while to refresh. Reload Disk Usage after a few minutes.

Troubleshooting

  • Usage did not drop after deleting files: the files are in .trash, or the figure has not refreshed yet.
  • A folder cannot be deleted: wrong ownership; contact support.
  • Space fills again quickly: a log or backup job runs on a schedule; find it in the plugin settings or cPanel → Advanced → Cron Jobs.

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.