---
title: "Purge all cache for a website"
method: DELETE
path: "/v1/hosting/websites/{website_id}/cache"
tags: ["Cache"]
---

# Purge all cache for a website

`DELETE /v1/hosting/websites/{website_id}/cache`

## Request

- Base URL: `https://api.10web.io`
- URL: `https://api.10web.io/v1/hosting/websites/{website_id}/cache`
- Auth: none declared. Required headers: `x-api-key`
- TypeScript: <https://skmtc.dev/10web/apis/10web-api-v1/docs/v1/hosting/websites/:website_id/cache/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `website_id` integer, required

## Headers

- `x-api-key` string, required

## Request body

- object
  - `recache` 0 | 1: Whether to rebuild the cache (1) or just clear it (0)

## Response `200`

Cache purged successfully

- StatusResponse
  - `status` 'ok' | 'error'

## Other responses

- `403`: Unauthorized access
- `429`: Too many requests
- `500`: Something went wrong

---

[API](https://skmtc.dev/10web/apis/10web-api-v1.md) - [All operations](https://skmtc.dev/10web/apis/10web-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/10web/apis/10web-api-v1/revisions/01afc9651dfc?raw)
