Skip to main content

deleteThread

plugin.chatApi.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 plugin from '@codebolt/plugin-sdk';

const result = await plugin.chatApi.deleteThread(/* ThreadIdRequest */);
console.log(result);