Skip to content

Commit

Permalink
Add cleaner to .trash folders
Browse files Browse the repository at this point in the history
Add cleaner to .trash folders from all the cPanel users
  • Loading branch information
djprmf committed Mar 22, 2018
1 parent c835dd1 commit 3fce3ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpanel-disk-cleaner
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ rm -rf /home/cpeasyapache
rm -rf /home/MySQL-install
# Remove cPanel File Manager temp files
rm -fv /home/*/tmp/Cpanel_*
# Delete all cPanel users .trash folders
find /home/*/.trash/* -exec rm -rf {} \;

# This will clean all the backup files generated under the users accounts.
# Useful if the backup feature in cPanel is enabled and users are not deleting old backups
Expand Down

0 comments on commit 3fce3ba

Please sign in to comment.