Question : how to clear squid cache directory ?
Step 1
Find Squid cache directory location
# grep cache_dir /etc/squid/squid.conf
Step 2
Restart Squid with an empty cache
# squid -k shutdown
Step 3
Delete the Cache directory by following command
# rm -rf < your cache dir path >
# rm -rf /var/spool/squid/
Step 4
Now Create Directory
# mkdir /var/spool/squid
Step 5
Set Permission
# chown squid:squid /var/spool/squid
SELinux user : command
# restorecon -vr /var/spool/squid
Step 6
Re-create the cache directories
# squid -z
Step 7
# service squid restart