> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete workflow binding

> Delete the brand's bindings for {workflow_type}. ?template_key= scopes the delete to one template; without it every row for the workflow_type is removed…

Delete the brand's bindings for \{workflow\_type}. `?template_key=` scopes the delete to one template; without it every row for the workflow\_type is removed. Returns 200 \{'deleted': N} (not a bare 204) so the caller can see how many rows the sweep took; 404 when nothing matched.

NOTE: `PATCH /v1/brands/&#123;brand_id&#125;` with a `workflow_bindings` array delete-and-reinserts ALL bindings for the brand and will clobber rows created here.

### Path parameters

<ParamField path="brand_id" type="string (uuid)" required />

<ParamField path="workflow_type" type="string (string)" required />

### Query parameters

<ParamField query="template_key" type="string">
  Scope the delete to one template\_key. Omitted, every binding for the workflow\_type is deleted.
</ParamField>

### Response

`WorkflowBindingDeleteResponse`

<ResponseField name="deleted" type="integer" required>
  Number of rows removed.
</ResponseField>

### Status codes

| Code  | Meaning          |
| ----- | ---------------- |
| `200` | Success          |
| `400` | Validation error |
| `401` | Unauthorized     |
| `404` | Not found        |
| `429` | Rate limited     |
| `500` | Internal error   |

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url 'https://api.workstream.stateset.com/v1/brands/{brand_id}/workflow-bindings/{workflow_type}' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "deleted": 1
  }
  ```
</ResponseExample>
