---
title: "Delete DNS Record"
method: DELETE
path: "/dnszone/{zoneId}/records/{id}"
tags: ["DNS Zone"]
---

# Delete DNS Record

`DELETE /dnszone/{zoneId}/records/{id}`

## Request

- Base URL: `https://api.bunny.net`
- URL: `https://api.bunny.net/dnszone/{zoneId}/records/{id}`
- Auth: API key in header `AccessKey`
- TypeScript: <https://skmtc.dev/bunny/apis/bunny-net-api/docs/dnszone/:zoneId/records/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `zoneId` integer, required
- `id` integer, required

## Response `204`

The DNS record was successfully deleted.

## Other responses

- `400`: Failed deleting the DNS Record. See error response.
- `401`: The request authorization failed
- `404`: The DNS Zone or DNS Record with the requested ID does not exist.
- `409`: The DNS Zone is being modified by another request. Retry shortly.
- `500`: Internal Server Error

## Changes

- **2026-10-27** `2096a6606d8d`: 1 info
  - added the non-success response with the status `409`

[Operation history](https://skmtc.dev/bunny/apis/bunny-net-api/changes/dnszone/:zoneId/records/:id/delete.md)

---

[API](https://skmtc.dev/bunny/apis/bunny-net-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-net-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-net-api/revisions/2b06f94dbfbf?raw)
