Delete Files in Trash Folder on all cPanel Accounts

Items deleted using the file manager are preserved in the hidden .Trash directory and will occasionally need deleting to recover disc space.

Running this command from the command line occasionally can save a lot of disc space on your server:

find /home/*/.trash/* -exec rm -rf {} \;

You might need to adjust the path to suit your own set up.

Leave a Comment