---
title: "Permanently remove a queue + everything attached."
method: POST
path: "/model-hub/annotation-queues/{id}/hard-delete/"
tags: ["model-hub"]
---

# Permanently remove a queue + everything attached.

`POST /model-hub/annotation-queues/{id}/hard-delete/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/annotation-queues/{id}/hard-delete/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Hard delete cascades through the FK graph (rules, items,
assignments, scores) via ``on_delete=CASCADE``. There is no
recovery — callers must pass ``force=true`` AND the queue's
exact name as ``confirm_name`` so the action can't fire from
a typo'd request.

## Request body

- QueueHardDeleteRequest
  - `force` boolean, required
  - `confirm_name` string, required

## Response `200`

OK

- QueueHardDeleteResponse
  - `status` boolean
  - `result` QueueHardDeleteResult, required
    - `deleted` boolean, required
    - `hard_deleted` boolean
    - `archived` boolean
    - `queue_id` string, uuid, required

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
