---
title: "Remove a managed domain"
method: DELETE
path: "/dns-providers/{provider_id}/domains/{domain}"
tags: ["DNS Providers"]
---

# Remove a managed domain

`DELETE /dns-providers/{provider_id}/domains/{domain}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/dns-providers/{provider_id}/domains/{domain}`
- Auth: HTTP bearer

## Path parameters

- `provider_id` integer, required
- `domain` string, required

## Response `204`

Managed domain removed

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Domain not found
- `409`: Managed domain is still used by domain delivery bindings

## Changes

- **2026-11-09** `12896146b193`: 1 breaking
  - removed the required property `extensions` from the response with the `409` status
- **2026-10-05** `4b228ebed583`: 1 info
  - added the non-success response with the status `409`
- **2026-10-05** `63a80791dc58`: 1 info
  - removed the non-success response with the status `409`
- **2026-10-03** `de8387218c0b`: 1 info
  - added the non-success response with the status `409`
- **2026-01-11** `50604ba8d4a8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/dns-providers/:provider_id/domains/:domain/delete.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
