---
title: "Clear domain catch-all"
method: DELETE
path: "/api/domains/{domain}/email/catch-all"
tags: ["Email"]
---

# Clear domain catch-all

`DELETE /api/domains/{domain}/email/catch-all`

## Request

- Base URL: `https://domani.run`
- URL: `https://domani.run/api/domains/{domain}/email/catch-all`
- Auth: HTTP bearer

Remove the catch-all on a domain. Email to unmatched addresses will be dropped again. It changes mail for the whole domain, so a mailbox-confined token gets 403 MAILBOX_CONFINED.

## Path parameters

- `domain` string, required

## Response `200`

Catch-all cleared

- object
  - `domain` string
  - `catch_all` string, nullable
  - `hint` string

## Other responses

- `403`: A mailbox-confined token cannot change mail for the whole domain (MAILBOX_CONFINED)

---

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