# Remove the mailbox's event webhook

Deletes the hook: event batches stop immediately and nothing is retained. Any batch already in flight completes its retry ladder against nothing and is dropped; re-creating the hook later starts fresh (re-sync via GET /mailboxes/{mailboxId}/messages/changes rather than expecting a backlog).

## `DELETE /api/v1/mailboxes/{mailboxId}/event-webhook`

### Path parameters

- `mailboxId` (string, required) — Mailbox ULID identifier

### 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 mailbox not accessible

`application/json` → ErrorBody

**503** — temporary_failure — the mailbox’s creation is still installing its hook; retry after Retry-After

`application/json` → ErrorBody

### Example request

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

## TypeScript SDK

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

```ts
const deletedResult = await openemail.mailboxes.deleteEventWebhook(mailboxId)
```
