---
title: "Delete a task"
method: DELETE
path: "/cmmn-runtime/tasks/{taskId}"
tags: ["Tasks"]
---

# Delete a task

`DELETE /cmmn-runtime/tasks/{taskId}`

## Request

- Base URL: `https://developer-docs.flowable.com/cmmn-api`
- URL: `https://developer-docs.flowable.com/cmmn-api/cmmn-runtime/tasks/{taskId}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/docs/cmmn-runtime/tasks/:taskId/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `taskId` string, required

## Query parameters

- `cascadeHistory` string
- `deleteReason` string

## Response `204`

Indicates the task was found and has been deleted. Response-body is intentionally empty.

## Other responses

- `403`: Indicates the requested task cannot be deleted because it’s part of a workflow.
- `404`: Indicates the requested task was not found.

---

[API](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api.md) - [All operations](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/revisions/afdfa1fcacd0?raw)
