bulkDelete
plugin.threadsApi.bulkDelete(data: ThreadBulkDeleteRequest): Promise<void>
Deletes multiple threads in a single operation.
Removes the specified threads from the system in a bulk operation. This is more efficient than deleting threads individually and ensures atomic deletion of multiple threads.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
data | ThreadBulkDeleteRequest | Yes | The bulk delete request containing thread IDs to delete |
Returns
Promise<void> — A promise that resolves when all threads have been deleted
Example
import plugin from '@codebolt/plugin-sdk';
const result = await plugin.threadsApi.bulkDelete(/* ThreadBulkDeleteRequest */);
console.log(result);