Skip to content

Delete Message

DELETE/api/threads/{threadId}/messages/{messageId}

Deletes a specific message from a thread. Deleting an assistant message also deletes its tool-result messages. The runtime attempts to remove attachment files for all deleted messages. Deleting a queued message cancels its delivery. The route sends no deletion frame on the thread stream.

threadIdstringrequired

The unique thread identifier (UUID)

messageIdstringrequired

The unique message identifier

successbooleanrequired

Whether the deletion was successful