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_*
Hello.. this was my post originally. Didn't realize that I wasn't logged in. but, are you listing files that are save to remove or NOT? Thanks
a
Hi Agabby, the files listed are the ones that are in cPanel by default. I believe the intent here was that, using this list, you would know which files came with cPanel, and which had been added by you or the site administrator as a way to prioritize what to keep. We can't directly advise you on which files to delete, as everyone's site configuration is different and we don't know what you prioritize. That said, you may want to review the official cPanel documentation for things like log files to get an idea of what may not be useful to you. Hope that helps!