How to Empty / Delete files .trash folder cPanel users Print

  • 0

The .trash folder in /home/$username/.trash contains any files that a user has deleted via their cpanel’s file manager.  If your users are not clearing this out, it can start to eat up a lot of disk space on your server.

If you want to empty every users .trash folder, simply run this command.

 

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

 

If you also have a home2, home3, etc etc, you can use this command.

 

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

 


Was this answer helpful?

« Back