Varnish expire/ purge the entire varnish cache easily and quickly

https://www.varnish-software.com/developers/tutorials/ban/

 

// Expire and or purge all pdf files, pdf documents
ban obj.http.Content-Type == application/pdf

// Expire and or purge all pages with return code 200 (found ok).
ban obj.status == 200

// Expire and or purge all content (the entire varnish).
ban obj.status != 0

// Openshift example:
oc exec cms-mc-varnish-0 -- varnishadm ban obj.status != 0

// Docker example:
docker exec cms-mc-varnish-0 -- varnishadm ban obj.status !=0