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

# Flush Queue

`POST /api/v1/edit/mailq`

Using this API you can flush the current mail queue. This will try to deliver all mails currently in it.
This API uses the command: `postqueue -f`

## Request body

- object
  - `action` string — use flush to flush 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)
