---
title: "Delete a domain"
method: DELETE
path: "/domains/{id}"
tags: ["Domains"]
---

# Delete a domain

`DELETE /domains/{id}`

## Request

- Base URL: `https://api.groundmail.dev`
- URL: `https://api.groundmail.dev/domains/{id}`
- Auth: HTTP bearer

Removes the domain from the account and revokes its sending authorization.
If mail-server teardown fails, the domain row is kept and the API returns 502.

## Path parameters

- `id` string, required

## Response `200`

Domain deleted

- object
  - `ok` boolean, required

## Other responses

- `401`: Unauthorized
- `404`: Domain not found
- `502`: Failed to revoke sending authorization upstream

---

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