curl -X POST "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/purge_cache" -H 'Authorization: Bearer $CF_API_TOKEN' -H 'Content-Type: application/json' -d '{"files":["https://example.com/css/app.css"]}'

Category: Cloudflare

curl -X POST "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/purge_cache" -H 'Authorization: Bearer $CF_API_TOKEN' -H 'Content-Type: application/json' -d '{"files":["https://example.com/css/app.css"]}'

Purge specific files from the cache

Removes only the listed URLs from Cloudflare's cache, leaving everything else intact, which is cheaper for the origin than a full purge. The files array takes full URLs, not paths. Cache tags and hostname-based purges are also supported for bigger rollouts.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.