---
title: "Purge Cache"
method: POST
path: "/pullzone/{id}/purgeCache"
tags: ["Pull Zone"]
---

# Purge Cache

`POST /pullzone/{id}/purgeCache`

## Request

- Base URL: `https://api.bunny.net`
- URL: `https://api.bunny.net/pullzone/{id}/purgeCache`
- Auth: API key in header `AccessKey`
- TypeScript: <https://skmtc.dev/bunny/apis/bunny-net-api/docs/pullzone/:id/purgeCache/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` integer, required

## Request body

- PullZonePurgeModel
  - `CacheTag` string, nullable

## Response `204`

The cache was successfully purged

## Other responses

- `401`: The request authorization failed
- `404`: The Pull Zone with the requested ID does not exist
- `500`: Internal Server Error

---

[API](https://skmtc.dev/bunny/apis/bunny-net-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-net-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-net-api/revisions/2b06f94dbfbf?raw)
