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

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

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

Service producers can use this method to remove DNS record sets from private DNS zones in the shared producer host project.

## Path parameters

- `parent` string, required

## Request body

- RemoveDnsRecordSetRequest — Request to remove a record set from a private managed DNS zone in the shared producer host project. The name, type, ttl, and data values must all exactly match an existing record set in the specified zone.
  - `dnsRecordSet` DnsRecordSet — Represents a DNS record set resource.
    - `type` string — Required. The identifier of a supported record type.
    - `data` string[] — Required. As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) for examples see https://cloud.google.com/dns/records/json-record.
    - `domain` string — Required. The DNS or domain name of the record set, e.g. `test.example.com`. Cloud DNS requires that a DNS suffix ends with a trailing dot.
    - `ttl` string, google-duration — Required. The period of time for which this RecordSet can be cached by resolvers.
  - `zone` string — Required. The name of the private DNS zone in the shared producer host project from which the record set will be removed.
  - `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.

## 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)
