---
title: "Purge Queue"
method: DELETE
path: "/queue/purge"
tags: ["queue"]
---

# Purge Queue

`DELETE /queue/purge`

This endpoint purges the jobs in the queue

If neither queue_id nor broadcast_id are provided in the request body, this will purge all the message jobs in the queues.

## Headers

- `x-phone` string

## Request body

- object
  - `queue_id` union — Provide the queue_id of the message to purge only jobs in that queue (or an array of queue_id to purge multiple queues)
    - string
    - string[]
  - `broadcast_id` string — Provide the broadcast_id to purge all messages of that broadcast

## Response `204`

204 No Content

- object — _204 No Content_

---

[API](https://skmtc.net/periskope/apis/api-local.md) · [All operations](https://skmtc.net/periskope/apis/api-local/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/periskope/api-local/revisions/f2738ced87d8/schema)
