## Delete thread

`$ openai beta:threads delete`

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

Delete a thread.

### Parameters

- `--thread-id: string`

  The ID of the thread to delete.

### Returns

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

  - `id: string`

  - `deleted: boolean`

  - `object: "thread.deleted"`

### Example

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

#### Response

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