Clear Squid Proxy Cache And Re-create the Cache Directories

Originally published at:

How do I clear squid cache? How do I re-create the cache directories on a server where Squid version 3.x is currently running in Linux or Unix based server?

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki