CPANEL disk clean - How to free disk space

This article is for Utixo clients who have root access to their server and they need to clean up the disk and free some space.

There are a number of steps to perform to delete unneeded files.

  1. Delete user cPanel backups

    If you have the backup feature in cPanel enabled, chances are your users are storing the backups on the server instead of downloading and removing them. Use the following to remove those files:

    for user in `/bin/ls -A /var/cpanel/users` ; do rm -fv /home/$user/backup-*$user.tar.gz ; done
  2. Delete cPanel File Manager temp files

    When users upload files in File Manager within cPanel, File Manager creates a temp file that may or may not get removed upon upload. You can remove these files using this command via SSH

    rm -fv /home/*/tmp/Cpanel_*
  3. Clean the Log folder (/var/log/)

    There are many archive files that can be removed here, the folder contains all the logs of the different service installed
  4. Clean up Yum files

    Yum updates leave package cache files on the server. You can clean up all unneeded yum files by running:

    yum clean all
  • cpanel disk clean, free disk space cpanel
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

how do I allow to turn off spamassassin for single users

Sometimes Cpanel user for many reason need to disable the spam filter, may be because they use an...

Where are the database files stored in WHM?

The files are store in the folder /var/lib/mysql/


Sometimes, you add an email account from cPanel, and you get an error message The Email Account...

How delete large amount of files from a folder in ssh

Sometime you have a problem with folder becoming unwieldy with hundreds of thousands of tiny...

How to Backup and restore cPanel account from command line

You can take backup of the cPanel account from command line. Backup account For taking backup...