Path parameters
-
The ID of the thread to which this message belongs.
-
The ID of the message to delete.
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"
}