LOOMAL
SDK / API ReferenceThreads

Delete Thread

Soft-delete a thread and all its messages

Scope: mail:manage

Soft-delete an entire thread along with every message inside it.

Request

import { Loomal } from "@loomal/sdk";

const loomal = new Loomal({ apiKey: process.env.LOOMAL_API_KEY! });
await loomal.mail.deleteThread("thd_a3f91b00c4e2d7e8");
import os
from loomal import Loomal

loomal = Loomal(api_key=os.environ["LOOMAL_API_KEY"])
loomal.mail.delete_thread("thd_a3f91b00c4e2d7e8")
loomal threads delete thd_a3f91b00c4e2d7e8
mail.delete_thread(thread_id)

Available through @loomal/mcp — see MCP setup.

curl -X DELETE https://api.loomal.ai/v0/threads/thd_a3f91b00c4e2d7e8 \
  -H "Authorization: Bearer loid-your-api-key"

Path Parameters

ParamTypeDescription
threadIdstringThe thread ID to delete

Response — 204 No Content

No body.

Errors

StatusCodeDescription
404not_foundThread not found or not accessible

On this page