Skip to main content

delete

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

const result = await plugin.threadsApi.delete('threadId');
console.log(result);