Delete message

DELETE /threads/{thread_id}/messages/{message_id}

Deletes a message.

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.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
DELETE /threads/{thread_id}/messages/{message_id}
curl \
 -X DELETE https://api.openai.com/v1/threads/{thread_id}/messages/{message_id} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id": "string",
  "deleted": true,
  "object": "thread.message.deleted"
}