List of files safe to remove to free up disk space on cpanel
I've been trying to see where I can find a list of files (file manager) that are safe to delete in cpanel and that will free up disk space. For example, I see .log, .sock that are more than 5yrs old. Not sure if I should remove them. Older .htaccess and cache files. I read somewhere that there are commands to manage these things such as this code to get rid of tmp files. Also in the past one of the tech support reps gave me commands to check for duplicate files. Where would I insert these commands. I also read that there is a way to set settings to rid of non important files within 30 days, etc. I'm constantly trying to review cpanel forums and others to find an answer. Thanks in advance for you help.
rm -fv /home/*/tmp/Cpanel_*