Remove unneeded files to clear space from your Debian/Ubuntu/RedHat/CentOS servers or VMs
I generate some custom VMs for testing and I like to keep the sizes as small as possible. Removing uneeded files manually is a pain so this script will automatically do it for you.
Danila Vershinin wrote a very interesting article and script on how to delete unneeded files from CentOS/RedHat:
https://www.getpagespeed.com/server-setup/clear-disk-space-centos
Danila has indicated that he is developing an application/script to do this on his GitHub:
https://github.com/dvershinin/diskspace
This is just my solution applying the above ideas.