---
title: ​Purge cache by hostname · Cloudflare Cache (CDN) docs
description: Purging by hostname means that all assets at URLs with a host that matches one of the provided values will be instantly purged from the cache.
lastUpdated: 2025-04-03T17:01:10.000Z
source_url:
  html: https://patricia-pcx17119-l7-overrides.preview.developers.cloudflare.com/cache/how-to/purge-cache/purge-by-hostname/index.md
  md: https://patricia-pcx17119-l7-overrides.preview.developers.cloudflare.com/cache/how-to/purge-cache/purge-by-hostname/
---

Purging by hostname means that all assets at URLs with a host that matches one of the provided values will be instantly purged from the cache.

1. Log in to your [Cloudflare dashboard](https://dash.cloudflare.com/login), and select your account and domain.

2. Select **Caching** > **Configuration**.

3. Under **Purge Cache**, select **Custom Purge**. The **Custom Purge** window appears.

4. Under **Purge by**, select **Hostname**.

5. Follow the syntax instructions:

   * One hostname per line.
   * Separated by commas.
   * You can purge up to 30 hostnames at a time.

6. Enter the appropriate value(s) in the text field using the format shown in the example.

7. Select **Purge**.

For information on rate limits, refer to the [Availability and limits](https://developers.cloudflare.com/cache/how-to/purge-cache/#availability-and-limits) section.

## Resulting cache status

Purging by hostname deletes the resource, resulting in the `CF-Cache-Status` header being set to [`MISS`](https://developers.cloudflare.com/cache/concepts/cache-responses/#miss) for subsequent requests.

If [tiered cache](https://developers.cloudflare.com/cache/how-to/tiered-cache/) is used, purging by hostname may return `EXPIRED`, as the lower tier tries to revalidate with the upper tier to reduce load on the latter. Depending on whether the upper tier has the resource or not, and whether the end user is reaching the lower tier or the upper tier, `EXPIRED` or `MISS` are returned.
