Skip to main content

deleteThreadStep

client.chat.deleteThreadStep(threadId: string, stepId: string): Promise<void>

Deletes a step from a chat thread.

Removes the specified step from the thread's step sequence.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the thread
stepIdstringYesThe unique identifier of the step to delete

Returns

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

Example

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

const client = new CodeBoltClient();

const result = await client.chat.deleteThreadStep('threadId', 'stepId');
console.log(result);