Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The ID of the thread to which this message belongs.
The ID of the message to delete.
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"
}Deletes a message.
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"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the thread to which this message belongs.
The ID of the message to delete.
Was this page helpful?