DELETE
/
threads
/
{thread_id}
/
messages
/
{message_id}
curl --request DELETE \
  --url https://api.openai.com/v1/threads/{thread_id}/messages/{message_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "deleted": true,
  "object": "thread.message.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 which this message belongs.

message_id
string
required

The ID of the message to delete.

Response

200 - application/json

OK

The response is of type object.