> ## 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 a thread

> Delete a thread

### Path parameters

<ParamField path="id" type="string" required>
  Thread id
</ParamField>

### Response

`Ok`

<ResponseField name="ok" type="boolean" required />

### Status codes

| Code  | Meaning |
| ----- | ------- |
| `200` | OK      |
| `400` | Error   |
| `401` | Error   |

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url 'https://api.example.com/api/threads/{id}' \
    --header 'x-widget-token: YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "ok": true
  }
  ```
</ResponseExample>
