Skip to content

Delete a zone

DELETE
/api/zones/{id}

Permanently deletes the zone. Cascades to its rewrite, configuration, access and WAF rules, security scenarios, basic-auth users and hostnames.

Authorizations

ApiToken

Long-lived API token created via POST /api/api-tokens (returned once in plaintext).

Type
API Key (header: X-API-TOKEN)
or
JWT

JWT access token obtained via POST /api/auth/login. Send as: Authorization: Bearer .

Type
HTTP (bearer)

Parameters

Path Parameters

id*

Zone identifier

Type
string
Required

Responses

Zone resource deleted

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI