---
title: "Delete a mailbox"
method: DELETE
path: "/1/mail_hostings/{mail_hosting_id}/mailboxes/{mailbox_name}"
tags: ["Mailbox management"]
---

# Delete a mailbox

`DELETE /1/mail_hostings/{mail_hosting_id}/mailboxes/{mailbox_name}`

Deletes a given mailbox.

## Path parameters

- `mail_hosting_id` integer, required
- `mailbox_name` string, required

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` boolean

## Other responses

- `400` — Mailbox is smtpban
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/158a854b0c7d/schema)
