Delete a Thread

This example demonstrates how to delete a thread.


Delete a Thread Example

Delete a Thread Example

import 'dotenv/config'; import {Langbase} from 'langbase'; const langbase = new Langbase({ apiKey: process.env.LANGBASE_API_KEY!, }); async function main() { const response = await langbase.threads.delete({ threadId: 'REPLACE_WITH_THREAD_ID', }); console.log(response); } main();