Delete thread

DELETEhttps:/api.openai.com/v1/threads/{thread_id}

Delete a thread.

Path parameters

  • thread_id
    string
    Required
    The ID of the thread to delete.

Response

Deletion status

Example request
1
curl https://api.openai.com/v1/threads/thread_abc123 \
2
-H "Content-Type: application/json" \
3
-H "Authorization: Bearer $OPENAI_API_KEY" \
4
-H "OpenAI-Beta: assistants=v2" \
5
-X DELETE
Example response
1
{
2
"id": "thread_abc123",
3
"object": "thread.deleted",
4
"deleted": true
5
}
Built with