Some months ago I was working with Squid 3.0 and managed to get rid of the X-Forwarded-For header completely. Now I am trying to do the same thing but I do not seem to hit the nail.
I have tried
forwarded_for off but that does not remove the header, it just inserts
unknown in place of the client IP.
header_access X-Forwarded-For deny all but I receive an error about invalid directive. Looking in the function reference it seems that this directive is deprecated in 3.0.
forwarded_for delete but this is only available from 3.1.