Skip to main content
DELETE
/
api
/
threads
/
{threadId}
/
messages
/
{messageId}
curl -X DELETE https://your-worker.workers.dev/api/threads/550e8400-e29b-41d4-a716-446655440000/messages/msg_001
{
  "success": true
}
Deletes a specific message from a thread.
Deleting messages may affect conversation context for future agent responses.
threadId
string
required
The unique thread identifier (UUID)
messageId
string
required
The unique message identifier
success
boolean
required
Whether the deletion was successful
curl -X DELETE https://your-worker.workers.dev/api/threads/550e8400-e29b-41d4-a716-446655440000/messages/msg_001
{
  "success": true
}