Threads
Delete a Thread by ID
Deletes a thread by its ID.
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
requiredYour Langtail API Key
Path Parameters
threadId
string
requiredThe ID of the thread to delete.
Response
200 - application/json
id
string
requiredThe unique identifier of the deleted thread.
object
string
requiredThe object type, which is always 'thread.deleted' for this response.
deleted
boolean
requiredIndicates that the thread was successfully deleted.
Was this page helpful?