# Delete DNS zone

`DELETE /v1/service/@service_id/dns/@zone_id` · scope `dns:write`

Delete the DNS zone.

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/v1/service/@service_id/dns/@zone_id` |
| Method | `DELETE` |
| Scope | `dns:write` |
| Header | `Authorization: Bearer <token>` |
| Content-Type | — (no body) |
| Tokens that can call it | app tokens (`tinoat_`), personal API tokens (`tinopat_`) |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `service_id` | path | integer | yes | DNS service ID |
| `zone_id` | path | integer | yes | DNS zone ID |

## Example request

```bash
curl -X DELETE "https://api.tino.vn/v1/service/100003/dns/500001" \
  -H "Authorization: Bearer $TINO_TOKEN"
```

`$TINO_TOKEN` is a token with the scope `dns:write`. Path parameters in the example are sample values.

SDK ([SDK & examples](/en/docs/sdk)): Python `client.dns.delete_zone(service_id, zone_id)`, Node.js `await client.dns.deleteZone(serviceId, zoneId);`, PHP `$client->dns->deleteZone($serviceId, $zoneId);`.

## Example response

No live sample: the route changes real data or the test account has no data for it. The answer is a JSON object; errors follow the common shape in [Calling the Tino API](/en/docs/api#errors).
