the goal is to find directories with given name and delete all files inside them, keeping actual directories
find /home/www/sites/ -iname '_cache' -exec du -hs {} \;
this gives me a list of files with their size
204K /home/www/sites/test.site.com/html/development/Temporary/_cache
904K /home/www/sites/test.site2.com/html/development/Temporary/_cache
is it possible to achieve with Linux find command?
rm -rfthe directory and recreate it, since you know the directory name? – cjc Aug 24 '12 at 17:58