Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Purge CDN cache

Purges the website's content from the Hostinger CDN edge cache only.

Purge CDN cache

delete

Purges the website's content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use Clear website cache.

Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
usernamestringRequiredExample: u123456789
domainstringRequired

Domain name

Example: mydomain.tld
Responses
200

Success empty response

application/json
messagestringOptionalExample: Request accepted
delete/api/hosting/v1/accounts/{username}/websites/{domain}/cdn/purge
DELETE /api/hosting/v1/accounts/{username}/websites/{domain}/cdn/purge HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "message": "Request accepted"
}

Last updated

Was this helpful?