Empty all .trash folders
Dears,
i need please to periodically empty all the .trash folders in users cpanel accounts,
is it safe to run :
rm -rf /home/*/.trash/*
-
Hello :) The following thread discusses commands you can use to remove the files from the /home/$user/.trash directory: Remove All home/username/.trash file Thank you. 0 -
This link no longer works 0 -
Need this two ?! I dont even know why cpanel didnt made some configuration on WHM for this, to empty them on x days or disable .trash, i have lots of cpanel accounts with lots of trash older then 300 days witch customer forget about it 0 -
Need this two ?! I dont even know why cpanel didnt made some configuration on WHM for this, to empty them on x days or disable .trash, i have lots of cpanel accounts with lots of trash older then 300 days witch customer forget about it
They did. Login to WHM go to Tweak Settings select "Age, in days, of content to purge from users" File Manager Trash " set the desider number of days (i.e., 30) click on "Save"0
Please sign in to leave a comment.
Comments
4 comments