## Delete ChatKit thread

`$ openai beta:chatkit:threads delete`

**delete** `/chatkit/threads/{thread_id}`

Delete a ChatKit thread along with its items and stored attachments.

### Parameters

- `--thread-id: string`

  Identifier of the ChatKit thread to delete.

### Returns

- `BetaChatKitThreadDeleteResponse: object { id, deleted, object }`

  Confirmation payload returned after deleting a thread.

  - `id: string`

    Identifier of the deleted thread.

  - `deleted: boolean`

    Indicates that the thread has been deleted.

  - `object: "chatkit.thread.deleted"`

    Type discriminator that is always `chatkit.thread.deleted`.

### Example

```cli
openai beta:chatkit:threads delete \
  --api-key 'My API Key' \
  --thread-id cthr_123
```

#### Response

```json
{
  "id": "id",
  "deleted": true,
  "object": "chatkit.thread.deleted"
}
```
