---
title: "Remove queued async tasks"
method: DELETE
path: "/v1/async/queue"
---

# Remove queued async tasks

`DELETE /v1/async/queue`

## Request

- Base URL: `https://api.answerline.dev`
- URL: `https://api.answerline.dev/v1/async/queue`
- Auth: HTTP bearer

Removes all of the authenticated organization's tasks that are still `QUEUED`, so a pending backlog can be emptied with a single request rather than through support. `PROCESSING` tasks are already running and stay as they are, and so do `COMPLETED` and `FAILED` ones. Nothing was charged for queued tasks, so removing them leaves your balance unchanged. Repeating the call is harmless: with nothing queued it returns `cleared: 0`.

## Response `200`

Queue emptied. The response reports how many queued tasks were deleted.

- ClearQueueResponse
  - `success` boolean, required: Confirms that the queue has been emptied.
  - `cleared` integer, required: How many queued tasks were deleted.

## Other responses

- `401`: Unauthorized - authentication failed
- `429`: Too Many Requests - the API key went over its rate limit, or the service dropped the request because it was overloaded (`SERVICE_OVERLOADED`); that case returns `Retry-After` without any limit headers
- `500`: Internal Server Error

---

[API](https://skmtc.dev/answerline/apis/answerline-api.md) · [All operations](https://skmtc.dev/answerline/apis/answerline-api/llms.txt) · [OpenAPI document](https://skmtc.dev/answerline/apis/answerline-api/revisions/a9dc35794662?raw)
