By Stew
Hello wiich is the useless files and folders i can delete for free hd space? Thank you
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This question was answered by @SphericalCow:
in general, i don’t recommend deleting the access nor error logs as they can helpful for troubleshooting issues. If they are several GB in size for some reason, then i suppose a case can be made to delete those files for some immediate free space.
Instead, I usually recommend using logrotate to keep the logs under control. A general tutorial on using logrotate for Apache is at this link
It’s important to proceed with caution, as deleting critical system files can cause problems.
Old log files can accumulate and take up space. You can delete or compress old logs.
sudo find /var/log -type f -name "*.log" -delete
sudo find /var/log -type f -name "*.log.*" -delete
You can also follow this tutorial
https://docs.digitalocean.com/support/how-do-i-fix-disk-space-issues-on-my-droplet/
Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.