AMP AMP
AMP
0
AMP

How to clear cache in particular directory

In my setup cache files are saved in the particular directory. but that directory contains variious files... i need to remove only the cache files... any solution??

Cache Add a comment
a sample image
james
asked Feb 07 2017

Answer

AMP
0
AMP

Find command would be the right choice...

For example:

If the specific directory contains ".png" files with some others, but to delete only ".png" files make use of below command,

# find . -name ".png" -exec rm -f {} \;                       [In your case, replace .png with .cache] 
Add a comment
a sample image
jagannatharumugam
asked Feb 08 2017
edited Oct 05 2018
Post your Answer