I am trying to delete the content of two folders on a dedicated linux server that I access remotely via SSH as the HD is 97% full.
The folders are called 'cache' and 'tcache' and contain cached contents that are egenerated on the fly. These folder exist on over 100 domains hosted on a cpanel server so what I am looking for is a way to recursively delete all of the files contained in these folders. It should also be noted that rm gives the following error due to file number limitations just in one of the folders "-bash: /bin/rm: Argument list too long"
The question is if there is an easier way of see where the space is being used on the server and how to remove the cache files all in one without having to manually go through each folder.