---
title: "Delete a workflow state. Blocked if any library post is still assigned to it."
method: DELETE
path: "/v2/scheduler/library/states/{stateId}"
tags: ["Library Posts State Api Service"]
---

# Delete a workflow state. Blocked if any library post is still assigned to it.

`DELETE /v2/scheduler/library/states/{stateId}`

## Request

- Base URL: `https://app.metricool.com/api`
- URL: `https://app.metricool.com/api/v2/scheduler/library/states/{stateId}`
- Auth: none declared

## Path parameters

- `stateId` integer, required

## Response `200`

State deleted.

- JsonOkResponseString
  - `metadata` object
  - `page` JsonPaging
    - `next` string
  - `data` string

## Other responses

- `403`: User not authorized on the brand.
- `404`: State not found for this brand.
- `409`: State still has library posts assigned.

---

[API](https://skmtc.dev/metricool/apis/metricool-api.md) · [All operations](https://skmtc.dev/metricool/apis/metricool-api/llms.txt) · [OpenAPI document](https://skmtc.dev/metricool/apis/metricool-api/revisions/cd0ca612fa01?raw)
