---
title: "Clear website cache"
method: DELETE
path: "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear"
tags: ["Hosting: Cache"]
---

# Clear website cache

`DELETE /api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear`

Permanently clears all server-side cache for the website at once. Use it when content was
updated and needs to be visible immediately, or after making major changes.

Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress
installation living in a subdirectory, pass the directory query parameter to clear its cache.

## Path parameters

- `username` string, required
- `domain` string, required

## Query parameters

- `directory` string

## Response `200`

Success empty response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

- `401` — Unauthenticated response
- `500` — Error response

## Changes

- **2026-07-07** `76092217d4e0` — 1 info
  - endpoint added
- **2026-06-09** `d05574986eb1` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/hostinger/apis/hostinger-api/changes/api/hosting/v1/accounts/:username/websites/:domain/cache/clear/delete.md)

---

[API](https://skmtc.dev/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.dev/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/53ccee45e5eb/schema)
