---
title: "Delete Private DNS"
method: DELETE
path: "/v2/cloud-gateways/networks/{networkId}/private-dns/{privateDnsId}"
tags: ["Private DNS"]
---

# Delete Private DNS

`DELETE /v2/cloud-gateways/networks/{networkId}/private-dns/{privateDnsId}`

Deletes a Private DNS attachment by ID. The attachment must be in a stable state (`ready`
or `error`) before deletion — requests against attachments in a transitional state
(`initializing`, `terminating`) will be rejected.

## Path parameters

- `networkId` string, uuid, required — The network ID to operate on. For serverless.v1 kind of cloud gateways, this field should be omitted.
- `privateDnsId` string, uuid, required

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

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