---
title: "Delete a primary server"
method: DELETE
path: "/{account}/secondary_dns/primaries/{primaryserver}"
tags: ["secondary dns"]
---

# Delete a primary server

`DELETE /{account}/secondary_dns/primaries/{primaryserver}`

Permanently deletes a primary server.

## Path parameters

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

## Response `204`

Successfully deleted primary server.

## Other responses

- `404` — The requested resource doesn't exist.

## Changes

- **2025-07-11** (v2) `06780be0ef17` — 1 info
  - the response property `message` became required for the status `404`
- **2023-07-18** (v2) `c8591dcf8c29` — 1 breaking
  - the response property `message` became optional for the status `404`

[Change history](https://skmtc.dev/dnsimple/apis/dnsimple-api/changes/:account/secondary_dns/primaries/:primaryserver/delete.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-service-production.skmtc.workers.dev/v1/apis/dnsimple/dnsimple-api/revisions/f0f58c839e7d/schema)
