---
title: "Deletes the task status of the workflow with the specified id."
method: POST
path: "/workflows/{workflowId}/taskstatuses/{taskStatusId}/delete"
tags: ["workflows"]
---

# Deletes the task status of the workflow with the specified id.

`POST /workflows/{workflowId}/taskstatuses/{taskStatusId}/delete`

A workflow must always have at least one task status of type 'todo' and one
             of type 'done'. If you attempt to delete the last status of either type,
             this endpoint will return a BadRequest error.
            
             If any tasks are currently using this status, you must provide a
             NewTaskStatusId in the request body to migrate those tasks to a
             different status within the same workflow.

<Check title="Required Permissions" icon="key">The user must be an admin or have `project-manage-config:write` permissions.</Check>

## Path parameters

- `workflowId` string, uuid, required
- `taskStatusId` string, uuid, required

## Headers

- `Authorization` string, required

## Request body

- DeleteWorkflowTaskStatusForm — The model for deleting a workflow task status.
  - `newTaskStatusId` string, uuid, nullable — The Id of the task status to migrate tasks to. Required if any tasks are currently using the status being deleted. Must be a different status within the same workflow.

## Response `204`

No Content

- object

## Other responses

- `400` — Bad Request
- `404` — Not Found

---

[API](https://skmtc.dev/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.dev/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/revisions/a13e7c704262/schema)
