---
title: "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}"
method: DELETE
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}"
tags: ["PrivateZones"]
---

# DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}

`DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}`

Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to it are removed.

## Path parameters

- `resourceGroupName` string, required
- `privateZoneName` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Headers

- `If-Match` string

## Response `200`

The Private DNS zone has been deleted.

## Other responses

- `202` — The Private DNS zone delete operation has been accepted and will complete asynchronously.
- `204` — The Private DNS zone was not found.
- `default` — Default response. It will be deserialized as per the Error definition.

---

[API](https://skmtc.net/azure/apis/privatednsmanagementclient.md) · [All operations](https://skmtc.net/azure/apis/privatednsmanagementclient/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/privatednsmanagementclient/versions/28daf4548ac3/schema)
