Skip to main content

deleteThread

client.chat.deleteThread(data: ThreadIdRequest): Promise<void>

Deletes a chat thread.

Permanently removes the specified thread and all its associated messages and steps.

Parameters

ParameterTypeRequiredDescription
dataThreadIdRequestYesThe thread identifier

Returns

Promise<void> — A promise that resolves when the thread has been deleted

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.chat.deleteThread(/* ThreadIdRequest */);
console.log(result);