Skip to main content

deleteCollection

client.vectorDb.deleteCollection(id: string): Promise<unknown>

Deletes a vector collection.

Permanently removes a collection and all its associated data including documents, chunks, and index information. This operation cannot be undone.

Parameters​

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the collection to delete

Returns​

Promise<unknown> — A promise that resolves when the collection has been deleted

Example​

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

const client = new CodeBoltClient();

const result = await client.vectorDb.deleteCollection('id');
console.log(result);