DELETE
/
threads
/
{thread_id}
Delete thread
curl --request DELETE \
  --url https://api.openai.com/v1/threads/{thread_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "deleted": true,
  "object": "thread.deleted"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

thread_id
string
required

The ID of the thread to delete.

Response

200 - application/json

OK

id
string
required
deleted
boolean
required
object
enum<string>
required
Available options:
thread.deleted