---
title: "Delete Queue"
method: POST
path: "/api/v1/delete/mailq"
tags: ["Queue Manager"]
---

# Delete Queue

`POST /api/v1/delete/mailq`

Using this API you can delete the current mail queue. This will delete all mails in it.
This API uses the command: `postsuper -d`

## Request body

- object
  - `action` string — use super_delete to delete the mail queue

## Response `200`

OK

## Other responses

- `401` — Unauthorized

---

[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)
