> ## Documentation index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Ask it with GET https://upstash.com/docs/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.
> Feature requests: https://upstash.com/docs/common/help/feature-requests.md lists what users asked for and how to vote for a request or add one.
> Page rating: `GET https://upstash.com/docs/feedback?path=/docs/qstash/api-reference/dlq/delete/delete-list-of-ids&helpful={true|false}&comment={comment}` records whether this page helped. The `comment` (URL-encoded, at most 500 characters) says what helped, or what was missing or wrong; a `helpful=false` rating needs it. It is anonymous and needs no key. Comments hold no code, secrets or personal data.

# Multiple IDs

> Delete specific QStash DLQ messages by their DLQ IDs.

`DELETE /v2/dlq/multi`

## OpenAPI

````yaml qstash/openapi.yaml delete /v2/dlq/multi
openapi: 3.1.0
info:
  title: QStash REST API
  description: |
    QStash is a message queue and scheduler built on top of Upstash Redis.
  version: 2.0.0
  contact:
    name: Upstash
    url: https://upstash.com
servers:
  - url: https://qstash-{region}.upstash.io
    description: Regional
    variables:
      region:
        default: eu-central-1
        enum:
          - us-east-1
          - eu-central-1
security:
  - bearerAuth: []
  - bearerAuthQuery: []
tags:
  - name: Messages
    description: Publish and manage messages
  - name: Queues
    description: Manage message queues
  - name: Schedules
    description: Create and manage scheduled messages
  - name: URL Groups
    description: Manage URL groups and endpoints
  - name: DLQ
    description: Dead Letter Queue operations
  - name: Logs
    description: Log operations
  - name: Signing Keys
    description: Manage signing keys
  - name: Flow Control
    description: Monitor flow control keys
  - name: Bulk Actions
    description: Track filter-based bulk operations
paths:
  /v2/dlq/multi:
    delete:
      summary: Delete Multiple IDs
      description: Delete only the supplied DLQ entries. Provide at least one `dlqId`
        in the JSON body or, if the body is empty, in the query string. A JSON
        body takes precedence over query parameters.
      tags:
        - DLQ
      x-mint:
        href: /qstash/api-reference/dlq/delete/delete-list-of-ids
        metadata:
          title: Multiple IDs
          sidebarTitle: Multiple IDs
          description: Delete specific QStash DLQ messages by their DLQ IDs.
      parameters:
        - $ref: "#/components/parameters/DLQMultipleIdsQuery"
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DLQMultipleIdsRequest"
      responses:
        "200":
          description: The specified DLQ entries were deleted.
          content:
            application/json:
              schema:
                type: object
                required:
                  - deleted
                properties:
                  deleted:
                    type: integer
                    format: int64
                    description: Number of DLQ entries deleted.
        "400":
          description: The ID list is empty or contains an invalid DLQ ID.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: QStash authentication token
    bearerAuthQuery:
      type: apiKey
      in: query
      name: qstash_token
      description: QStash authentication token passed as a query parameter
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message
    DLQMultipleIdsRequest:
      type: object
      required:
        - dlqIds
      properties:
        dlqIds:
          type: array
          minItems: 1
          items:
            type: string
          description: DLQ IDs to process.
      example:
        dlqIds:
          - dlq_id_1
          - dlq_id_2
  parameters:
    DLQMultipleIdsQuery:
      name: dlqIds
      in: query
      schema:
        type: array
        minItems: 1
        items:
          type: string
      style: form
      explode: true
      description: DLQ IDs to process when no JSON body is sent. Repeat this parameter
        or separate IDs with commas.
````
