Guides Cloudflare 5 min read 969 words

Purge Cloudflare Cache: Clear One URL or Everything

Clear a specific Cloudflare-cached URL or the whole zone, then check the response without confusing CDN, browser and origin caches.

To purge Cloudflare cache, open your domain's caching Configuration page and choose either Custom Purge for specific URLs or Purge Everything for the entire zone. Use a targeted URL purge when only a few files changed: it avoids unnecessarily emptying the rest of your cache.

A purge clears Cloudflare's stored copy, not every copy on the internet. A browser, hosting cache or WordPress caching plugin can still supply an older response. We explain the dashboard steps first, then how to tell which layer needs attention.

Choose the smallest purge that solves the problem

Cloudflare stores eligible resources on its network so requests do not always need a full response from your origin server. A purge removes a cached resource, allowing a subsequent request to fetch it again. For the background, read how Cloudflare cache works.

Choose a URL purge for an updated stylesheet, logo, script or other identifiable asset. If you changed several files, enter their individual URLs. Do not assume clearing a page URL also clears every image and stylesheet referenced by that page: those are separate requests.

Choose Purge Everything only when clearing selected resources is not practical. Cloudflare warns that an empty zone cache can cause a spike in requests to the origin. The warning is not merely about slower edge responses: the hosting server can also receive substantially more work while cached resources are populated again.

How to purge a specific URL

  1. Sign in to Cloudflare and select the correct domain. Check the domain before changing a production site's cache.
  2. Open Caching > Configuration, the Configuration page identified in Cloudflare's purge documentation.
  3. Under Purge Cache, select Custom Purge.
  4. Under Purge by, select URL.
  5. Enter the full URL of each resource you need to clear, following the format shown in the form.
  6. Review the entries and select Purge.

Copy the actual resource URL rather than guessing its path. Cloudflare treats the host as case-insensitive but the path as case-sensitive. An uppercase letter in an image filename can therefore matter even though capitalization in the domain does not.

Single-file purge does not accept wildcard patterns. If you need to clear a directory or other group of resources, review Cloudflare's prefix or tag purge options instead of pasting an asterisk into the URL field. Availability and limits should be checked in the current documentation rather than assumed.

Targeted Cloudflare cache purge: identify the resource URL, purge that URL and verify the returned content; browser caches remain separate.
Conceptual illustration, not a dashboard screenshot or a configuration test. Based on Cloudflare documentation checked 13 November 2026. Source: https://developers.cloudflare.com/cache/how-to/purge-cache/purge-by-single-file/

How to purge everything

  1. In the selected domain, return to Caching > Configuration.
  2. Under Purge Cache, select Purge Everything.
  3. Read the warning about the effect of clearing the entire cache.
  4. If a full purge is appropriate, confirm by selecting Purge Everything in the warning window.

Cloudflare describes this as clearing cached resources across its data centers. We do not attach an arbitrary countdown or promise that every visitor immediately receives a visibly changed page: the origin must already serve the right files, and other caches remain separate.

There is no undo that restores the old CDN copies after a purge. The next requests refill the cache from the origin where caching is applicable. Avoid repeating full purges while troubleshooting, because that can keep sending extra traffic back to the host without fixing the underlying problem.

Verify the resource, not just the purge confirmation

Open the changed resource itself and inspect its contents. With browser developer tools, review its response headers and compare the returned file with the version you intended to publish. Cloudflare documents CF-Cache-Status: MISS for the first request for a resource after these purges.

That does not mean every page must show MISS. A response may not be eligible for caching, and subsequent requests may already use a newly populated copy. A useful test checks both the response and the actual change, rather than treating one header value as a universal success condition.

For a command-line header check, replace this illustrative URL with the real asset:

curl -I https://example.com/assets/site.css

Also test the page that uses the asset. A correct stylesheet at one URL does not fix a page that still references a different filename. Review the different web cache layers if the results seem inconsistent.

Why old content can remain after a purge

  • Origin cache: if your host or application still serves an older file, Cloudflare can fetch that old version again. Publish the correct version and clear the relevant origin cache before repeating the targeted purge.
  • Browser cache: a CDN purge does not delete a visitor's local copy. A fresh browser session or developer-tools cache bypass can help isolate this. See our Browser Cache TTL guide.
  • Redirected URLs: purging a URL that redirects removes the cached redirect response, not the destination's cached content. Purge the final destination separately when needed.
  • Custom cache keys: dashboard URL purges cannot supply every header or cookie used by custom keys. Cloudflare documents API-based purges with matching key values, or alternative purge methods, for these cases.
  • Rules or transformed paths: request-property matching and URL transformations can affect the purge. Consult the single-file documentation instead of repeatedly clearing the whole zone.

Cloudflare's HTTP cache also requires the relevant hostname's traffic to pass through its network. If needed, check the hostname's proxy status. Our domain lookup tool can help with domain research, but it does not verify whether a specific asset has been purged.

Frequently asked questions

Does purging delete files from the website?

No. It removes Cloudflare's cached copies, not the original files stored at your host. An incorrect origin response still needs to be fixed at the origin.

Should we purge everything after every small edit?

Cloudflare recommends single-file purging rather than a complete purge where possible. Clear the resources affected by the edit and verify those URLs before widening the scope.

Sources