---
title: "Purge CDN cache for a subdomain"
method: POST
path: "/v1/domains/{domain}/subdomains/{subdomain}/cdn/purge"
tags: ["Domains"]
---

# Purge CDN cache for a subdomain

`POST /v1/domains/{domain}/subdomains/{subdomain}/cdn/purge`

## Request

- Base URL: `https://placeholder/v1`
- URL: `https://placeholder/v1/v1/domains/{domain}/subdomains/{subdomain}/cdn/purge`
- Auth: none required
- TypeScript: <https://skmtc.dev/northflank/apis/northflank-api/docs/v1/domains/:domain/subdomains/:subdomain/cdn/purge/post.ts> (a function with typed inputs; its response is checked against the schema)

Purges the CDN cache for the given subdomain

## Path parameters

- `domain` string, required: Name of the domain
- `subdomain` string, required: Name of the subdomain

## Request body

- object
  - `provider` string, required: Provider for which the CDN cache on the subdomain should be purged.

## Response `200`

The operation was performed successfully.

## Changes

- **2026-11-06** `503a425aa44f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/northflank/apis/northflank-api/changes/v1/domains/:domain/subdomains/:subdomain/cdn/purge/post.md)

---

[API](https://skmtc.dev/northflank/apis/northflank-api.md) - [All operations](https://skmtc.dev/northflank/apis/northflank-api/llms.txt) - [OpenAPI document](https://skmtc.dev/northflank/apis/northflank-api/revisions/6511db980148?raw)
