---
title: "Delete Email Account"
method: DELETE
path: "/email-accounts/{account_id}"
tags: ["integrations"]
---

# Delete Email Account

`DELETE /email-accounts/{account_id}`

## Request

- Base URL: `https://app.zeno-works.ch` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zeno-works.ch/email-accounts/{account_id}`
- Auth: none declared

Delete one IMAP ingest account from a company (accountant/owner).

Removes the mailbox as an ingest source, together with the mail envelopes stored for it.
Documents already ingested from it stay — booked ones included; they only lose their link
to the mail they came in. The company simply stops receiving new ones, so confirm with
the customer before deleting rather than after — a silently removed inbox looks like the
product losing their mail.

## Path parameters

- `account_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Response `200`

Successful Response

- MsgResponse: The ``{"msg": "..."}`` envelope — the error contract and many successes.
  - `msg` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zeno-works/apis/zeno-api.md) · [All operations](https://skmtc.dev/zeno-works/apis/zeno-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zeno-works/apis/zeno-api/revisions/1eb93dde146c?raw)
