Delete a thread.

DELETE /threads/{thread_id}

Path parameters

  • thread_id string Required

    The ID of the thread to delete.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id string Required
    • deleted boolean Required
    • object string Required

      Value is thread.deleted.

DELETE /threads/{thread_id}
curl \
 --request DELETE 'https://api.openai.com/v1/threads/{thread_id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id": "string",
  "deleted": true,
  "object": "thread.deleted"
}