---
title: "Manage queue operations"
method: POST
path: "/api/queue"
tags: ["job"]
---

# Manage queue operations

`POST /api/queue`

Cancel specific PENDING jobs by ID or clear all pending jobs in the queue.
Note: This endpoint only affects pending jobs. To cancel running jobs, use /api/interrupt.

## Request body

- QueueManageRequest — Request to manage queue operations
  - `delete` string[] — Array of PENDING job IDs to cancel
  - `clear` boolean — If true, clear all pending jobs from the queue

## Response `200`

Success

- QueueManageResponse
  - `deleted` string[] — Array of job IDs that were successfully cancelled
  - `cleared` boolean — Whether the queue was cleared

## Other responses

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

---

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