---
title: "Unlink a primary server from a secondary zone"
method: PUT
path: "/{account}/secondary_dns/primaries/{primaryserver}/unlink"
tags: ["secondary dns"]
---

# Unlink a primary server from a secondary zone

`PUT /{account}/secondary_dns/primaries/{primaryserver}/unlink`

Unlink the primary server from a secondary zone.

## Path parameters

- `account` integer, required
- `primaryserver` integer, required

## Response `200`

Primary Server unlinked.

- object
  - `data` PrimaryServer, required
    - `id` integer, required
    - `account_id` integer, required
    - `name` string, required
    - `ip` string, required
    - `port` integer, required
    - `linked_secondary_zones` string[], required
    - `created_at` string, date-time, required — A date-time value, representing when the entry was created, formatted as ISO 8601.
    - `updated_at` string, date-time, required — A date-time value, representing when the entry was last updated, formatted as ISO 8601.

## Other responses

- `400` — A required parameter is missing or the request is invalid.
- `404` — The requested resource doesn't exist.

## Changes

- **2025-07-11** (v2) `06780be0ef17` — 12 info
  - the response property `data` became required for the status `200`
  - the response property `data/account_id` became required for the status `200`
  - the response property `data/created_at` became required for the status `200`
  - the response property `data/id` became required for the status `200`
  - …8 more
- **2023-07-18** (v2) `c8591dcf8c29` — 12 breaking
  - the response property `data` became optional for the status `200`
  - the response property `data/account_id` became optional for the status `200`
  - the response property `data/created_at` became optional for the status `200`
  - the response property `data/id` became optional for the status `200`
  - …8 more

[Change history](https://skmtc.dev/dnsimple/apis/dnsimple-api/changes/:account/secondary_dns/primaries/:primaryserver/unlink/put.md)

---

[API](https://skmtc.dev/dnsimple/apis/dnsimple-api.md) · [All operations](https://skmtc.dev/dnsimple/apis/dnsimple-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dnsimple/apis/dnsimple-api/revisions/faec8b49cc03?raw)
