Purge CDN cache
Purges the website's content from the Hostinger CDN edge cache only.
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:
u123456789domainstringRequiredExample:
Domain name
mydomain.tldResponses
200
Success empty response
application/json
messagestringOptionalExample:
Request accepted401
Unauthenticated response
application/json
422
Validation error response
application/json
500
Error response
application/json
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?