---
title: "Deletes a project status from the workflow."
method: POST
path: "/workflows/{workflowId}/projectstatuses/{projectStatusId}/delete"
tags: ["workflows"]
---

# Deletes a project status from the workflow.

`POST /workflows/{workflowId}/projectstatuses/{projectStatusId}/delete`

A workflow must always have at least one project status to ensure projects
             using this workflow have a valid status. If you attempt to delete the last
             remaining project status, this endpoint will return a BadRequest error.
            
             If any projects are currently using this status, you must provide a
             NewProjectStatusId in the request body to migrate those projects 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
- `projectStatusId` string, uuid, required

## Headers

- `Authorization` string, required

## Request body

- DeleteWorkflowProjectStatusForm — The form for deleting a workflow project status.
  - `newProjectStatusId` string, uuid, nullable — The Id of the project status to migrate projects to. Required if any projects 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.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
