cURL
curl --request DELETE \ --url https://api.langtail.com/v2/threads/{threadId} \ --header 'X-API-Key: <x-api-key>'
{ "id": "<string>", "object": "thread.deleted", "deleted": true }
Deletes a thread by its ID.
Your Langtail API Key
"<LANGTAIL_API_KEY>"
The ID of the thread to delete.
Successfully deleted thread
The unique identifier of the deleted thread.
The object type, which is always 'thread.deleted' for this response.
"thread.deleted"
Indicates that the thread was successfully deleted.
true
Was this page helpful?