---
title: "Delete a DNS zone"
method: DELETE
path: "/gateway/dns-zone/{zone_id}"
tags: ["DNS Zones"]
---

# Delete a DNS zone

`DELETE /gateway/dns-zone/{zone_id}`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/gateway/dns-zone/{zone_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-4/docs/gateway/dns-zone/:zone_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes the zone and its records.

## Path parameters

- `zone_id` string, required

## Response `200`

Success

- SuccessResponse
  - `message` string

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: Zone or record not found

## Changes

- **2026-11-12** `4915bc3902b1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-4/changes/gateway/dns-zone/:zone_id/delete.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-4.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-4/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-4/revisions/4915bc3902b1?raw)
