---
title: "POST /v1/{+parent}/dnsZones:remove"
method: POST
path: "/v1/{+parent}/dnsZones:remove"
tags: ["services"]
---

# POST /v1/{+parent}/dnsZones:remove

`POST /v1/{+parent}/dnsZones:remove`

Service producers can use this method to remove private DNS zones in the shared producer host project and matching peering zones in the consumer project.

## Path parameters

- `parent` string, required

## Request body

- RemoveDnsZoneRequest — Request to remove a private managed DNS zone in the shared producer host project and a matching DNS peering zone in the consumer project.
  - `consumerNetwork` string — Required. The network that the consumer is using to connect with services. Must be in the form of projects/{project}/global/networks/{network} {project} is the project number, as in '12345' {network} is the network name.
  - `name` string — Required. The name for both the private zone in the shared producer host project and the peering zone in the consumer project.

## Response `200`

Successful response

---

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