# Remove the domain's event webhook

Deletes the hook: event batches for the domain's mailboxes stop and nothing is retained. Mailboxes with their OWN hook keep feeding it (the background walk recomputes each mailbox's arming). Re-creating the hook later starts fresh; re-sync per mailbox rather than expecting a backlog.

## `DELETE /api/v1/domains/{domain}/event-webhook`

### Path parameters

- `domain` (string, required) — Domain name

### Responses

**200** — Removed

`application/json` → DeletedResult

- `deleted` (boolean, required) — True if the resource was successfully deleted

**401** — unauthorized: the bearer credential is missing, malformed, expired, or revoked. Carries a `WWW-Authenticate: Bearer` challenge

`application/json` → ErrorBody

**404** — No hook configured, or domain not accessible

`application/json` → ErrorBody

**503** — temporary_failure: the platform's storage could not answer just now; retry after the Retry-After window. Any operation can answer this. A write that got it may have been applied, so retry it with the same idempotency key where it takes one, or read the state back first (see Transient failures in the API description)

`application/json` → ErrorBody

### Example request

```bash
curl -X DELETE 'https://api.open.email/api/v1/domains/{domain}/event-webhook' \
  -H 'Authorization: Bearer oek_…'
```

## TypeScript SDK

[`openemail.domains.deleteEventWebhook`](/docs/sdks/typescript/domains/delete-event-webhook)

```ts
const deletedResult = await openemail.domains.deleteEventWebhook(domain)
```
