Skip to content

Delete Index

client.beta.indexes.delete(stringindexID, IndexDeleteParams { organization_id, project_id } params?, RequestOptionsoptions?): void
DELETE/api/v1/indexes/{index_id}

Delete an index.

ParametersExpand Collapse
indexID: string
params: IndexDeleteParams { organization_id, project_id }
organization_id?: string | null
project_id?: string | null

Delete Index

import LlamaCloud from '@llamaindex/llama-cloud';

const client = new LlamaCloud({
  apiKey: process.env['LLAMA_CLOUD_API_KEY'], // This is the default and can be omitted
});

await client.beta.indexes.delete('index_id');
Returns Examples