Skip to main content
DELETE
/
api
/
threads
/
{threadId}
curl -X DELETE https://your-worker.workers.dev/api/threads/550e8400-e29b-41d4-a716-446655440000
{
  "success": true
}
Deletes a thread and all associated messages.
This action is irreversible. All messages and thread data will be permanently deleted.
threadId
string
required
The unique thread identifier (UUID)
success
boolean
required
Whether the deletion was successful
curl -X DELETE https://your-worker.workers.dev/api/threads/550e8400-e29b-41d4-a716-446655440000
{
  "success": true
}