Skip to main content

delete

client.threads.delete(threadId: string): Promise<void>

Deletes a thread from the system.

Permanently removes the specified thread and all its associated data. This action cannot be undone, so use with caution. Deleting a thread will also remove its relationships with other threads.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the thread to delete

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.threads.delete('threadId');
console.log(result);