DELETE
/threads/{thread_id}/messages/{message_id}Delete a thread message
Deletes a specific message from a thread. Use thread_id and message_id to identify the message you want to remove.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
thread_idstringrequired
The identifier of the thread containing the message.
message_idstringrequired
The identifier of the message to delete.
200Returns a deletion result containing the message identifier, a deleted flag, and the `thread.message.deleted` object type.
idstringrequired
deletedbooleanrequired
objectstringrequired
429Returned when the request was rejected because a rate limit was exceeded.
errorobjectrequired
Error handling
A 429 is returned when the request exceeds the rate limit. thread_id and message_id must identify the message you intend to delete.