curl --request DELETE \
--url https://api.openai.com/v1/threads/{thread_id} \
--header 'Authorization: Bearer <token>'
{
"id": "<string>",
"deleted": true,
"object": "thread.deleted"
}
Delete a thread.
curl --request DELETE \
--url https://api.openai.com/v1/threads/{thread_id} \
--header 'Authorization: Bearer <token>'
{
"id": "<string>",
"deleted": true,
"object": "thread.deleted"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The ID of the thread to delete.
OK
The response is of type object
.
Was this page helpful?