---
title: "Clear or delete items from the queue"
method: POST
path: "/api/queue"
tags: ["queue"]
---

# Clear or delete items from the queue

`POST /api/queue`

Mutates the execution queue. Supports clearing all queued prompts or deleting individual prompts by ID.

## Request body

- QueueManageRequest — Request to clear or delete from queue
  - `clear` boolean — If true, clear all pending items
  - `delete` string[] — Array of prompt IDs to delete from queue

## Response `200`

Queue updated

## Other responses

- `400` — Invalid request parameters
- `401` — Unauthorized
- `500` — Internal server error

## Changes

- **2026-05-22** `09a5075587c8` — 3 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `500`
- **2026-04-24** `a66055fa384e` — 1 breaking, 4 info
  - removed the media type `application/json` for the response with the status `200`
  - endpoint reactivated
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `401`
  - …1 more

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/queue/post.md)

---

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