class Fastly::Service

def purge_by_key(key, soft=false)

See README.md for examples of purging

Purge anything with the specific key from the given service.
def purge_by_key(key, soft=false)
  require_api_key!
  fetcher.client.post("#{Service.get_path(id)}/purge/#{key}", soft ? { headers: { 'Fastly-Soft-Purge' => "1"} } : {})
end