Join us May 13th & May 14th at Interrupt, the Agent Conference by LangChain. Buy tickets >
curl --request POST \
--url https://api.example.com/threads/prune \
--header 'Content-Type: application/json' \
--data '
{
"thread_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"strategy": "delete"
}
'{
"pruned_count": 123
}Prune threads by ID. The ‘delete’ strategy removes threads entirely. The ‘keep_latest’ strategy prunes old checkpoints but keeps threads and their latest state.
curl --request POST \
--url https://api.example.com/threads/prune \
--header 'Content-Type: application/json' \
--data '
{
"thread_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"strategy": "delete"
}
'{
"pruned_count": 123
}Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
Success
Response from pruning threads.
Number of threads successfully pruned.
Was this page helpful?