DELETE
/
v2
/
threads
/
{threadId}

This endpoint softly removes a thread by its unique identifier. It marks the thread and all associated messages as deleted in the system, but does not permanently erase them.

Headers

X-API-Key
string
required

Your Langtail API Key

Path Parameters

threadId
string
required

The ID of the thread to delete.

Response

200 - application/json
id
string
required

The unique identifier of the deleted thread.

object
string
required

The object type, which is always 'thread.deleted' for this response.

deleted
boolean
required

Indicates that the thread was successfully deleted.