Purge cache
Purge cached content from Cloudflare’s cache. You can purge everything, specific URLs, files with custom cache keys, or content by tags, hostnames, or prefixes.Purge everything
Removes all files from Cloudflare’s cache.string
required
The zone identifier
boolean
required
Set to true to purge all cached content
Purge by URL
Granularly removes one or more files from Cloudflare’s cache by specifying URLs.string
required
The zone identifier
array
required
An array of URLs to purge from cache
Purge with custom cache keys
Purge files with custom cache keys by including headers used to compute the cache key.array
required
Purge by cache tags
Granularly removes files by specifying associated cache tags.string
required
The zone identifier
array
required
An array of cache tags to purge
Purge by hostname
Purge all cached content for specified hostnames.string
required
The zone identifier
array
required
An array of hostnames to purge
Purge by prefix
Purge cached content by URL prefix.string
required
The zone identifier
array
required
An array of URL prefixes to purge
string
The purge operation identifier