Purge everything · Cloudflare Cache (CD...
why there's no API equivalent here? https://developers.cloudflare.com/cache/how-to/purge-cache/purge-everything/
Cloudflare Docs
Purge everything · Cloudflare Cache (CDN) docs
To maintain optimal site performance, Cloudflare strongly recommends using single-file (by URL) purging instead of a complete cache purge.
5 Replies
I could find this: https://community.cloudflare.com/t/api-purge-everything-returns-success-but-cache-not-purged/496005
but it seems to be undocumented this
--data '{"purge_everything":true}'
also here nothing https://developers.cloudflare.com/api/operations/zone-purge#purge-all-cached-content
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
or maybe you don't need to use any parameter?
also i think you don't use
-H "Authorization: Bearer $CF_API_TOKEN"
anymore
looking at examples here, u use X-Auth-Emai
land X-Auth-Key now
Cloudflare Docs
Purge cache key resources · Cloudflare Cache (CDN) docs
Purge resources that use Cache Keys via the Cloudflare API API link label Open API docs link . If you use Cloudflare’s Purge by URL API link label …
weird how u get the API for these but on the purge everything page you don't