---
title: "Delete DNS records"
method: DELETE
path: "/api/dns/v1/zones/{domain}"
tags: ["DNS: Zone"]
---

# Delete DNS records

`DELETE /api/dns/v1/zones/{domain}`

Delete DNS records for the selected domain.

To filter which records to delete, add the `name` of the record and `type` to the filter. 
Multiple filters can be provided with single request.

If you have multiple records with the same name and type, and you want to delete only part of them,
refer to the `Update zone records` endpoint.

Use this endpoint to remove specific DNS records from domains.

## Path parameters

- `domain` string, required

## Request body

- DNSV1ZoneDestroyRequest
  - `filters` object[], required — Filter records for deletion
    - `name` string, required — Name of the record
    - `type` 'A' | 'AAAA' | 'CNAME' | 'ALIAS' | 'MX' | 'TXT' | 'NS' | 'SOA' | 'SRV' | 'CAA', required — Type of the record

## Response `200`

Success response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/versions/796bd5194565/schema)
