---
title: "Cancel Workflow Run"
method: DELETE
path: "/v2/workflows/runs/{workflowRunId}"
tags: ["Runs"]
---

# Cancel Workflow Run

`DELETE /v2/workflows/runs/{workflowRunId}`

## Request

- Base URL: `https://qstash-eu-central-1.upstash.io`
- URL: `https://qstash-eu-central-1.upstash.io/v2/workflows/runs/{workflowRunId}`
- 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/runs/:workflowRunId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Cancel an ongoing workflow run.

## Path parameters

- `workflowRunId` string, required

## Response `200`

Workflow run cancelled successfully

## Other responses

- `404`: A workflow run is not found with the given id.
- `500`: An unexpected error occured.

---

[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)
