troubleshooting Question

Multiple Folder Contents Deletion & Drive Space Issue

Avatar of msryhajw
msryhajw asked on
9 Comments1 Solution262 ViewsLast Modified:
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.


Duncan Roe
Software Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 9 Comments.
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>


Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 9 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004