---
title: "Cancel In-Progress Failure Callback"
method: DELETE
path: "/v2/workflows/dlq/callback/{dlqId}"
tags: ["DLQ"]
---

# Cancel In-Progress Failure Callback

`DELETE /v2/workflows/dlq/callback/{dlqId}`

## Request

- Base URL: `https://qstash-eu-central-1.upstash.io`
- URL: `https://qstash-eu-central-1.upstash.io/v2/workflows/dlq/callback/{dlqId}`
- Auth: one of:
  - HTTP bearer
  - API key in query parameter `qstash_token`
- TypeScript: <https://skmtc.dev/upstash/apis/upstash-workflow-rest-api/docs/v2/workflows/dlq/callback/:dlqId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Cancel an in-progress failure callback for a failed workflow.

When you retry a failed failure callback using the POST endpoint, it enters an in-progress state.
This endpoint allows you to cancel that in-progress callback before it completes.

The callback must be in an in-progress state. If there's no in-progress callback,
the request will fail with a 400 error.

## Path parameters

- `dlqId` string, required

## Other responses

- `302`: Failure callback canceled successfully
- `400`: Bad Request - No in-progress failure callback to cancel, or callback information is invalid
- `401`: Unauthorized
- `404`: Failure callback not found or message not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/upstash/apis/upstash-workflow-rest-api.md) - [All operations](https://skmtc.dev/upstash/apis/upstash-workflow-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/upstash/apis/upstash-workflow-rest-api/revisions/251bee05a7ec?raw)
