---
title: "Delete domain"
method: POST
path: "/api/v1/delete/domain"
tags: ["Domains"]
---

# Delete domain

`POST /api/v1/delete/domain`

You can delete one or more domains.

## Request body

- object
  - `items` string[]

## Response `200`

OK

- object[]
  - `log` unknown[] — contains request object
    - unknown
  - `msg` unknown[]
    - unknown
  - `type` 'success' | 'danger' | 'error'

## Other responses

- `401` — Unauthorized

## Changes

- **2022-07-19** `106c373e9790` — 2 breaking, 3 warning
  - the `items` request property type/format changed from `object`/`` to `array`/``
  - the response's body type/format changed from `object`/`` to `array`/`` for status `200`
  - removed the optional property `log` from the response with the `200` status
  - removed the optional property `msg` from the response with the `200` status
  - …1 more
- **2020-06-07** `47523aca063a` — 2 breaking, 3 info
  - the `items` request property type/format changed from `array`/`` to `object`/``
  - the response's body type/format changed from `array`/`` to `object`/`` for status `200`
  - added the optional property `log` to the response with the `200` status
  - added the optional property `msg` to the response with the `200` status
  - …1 more

[Change history](https://skmtc.dev/mailcow/apis/mailcow-api/changes/api/v1/delete/domain/post.md)

---

[API](https://skmtc.dev/mailcow/apis/mailcow-api.md) · [All operations](https://skmtc.dev/mailcow/apis/mailcow-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mailcow/mailcow-api/revisions/ae01d1d7886a/schema)
