Skip to content

Delete Index

beta.indexes.delete(strindex_id, IndexDeleteParams**kwargs)
DELETE/api/v1/indexes/{index_id}

Delete an index.

ParametersExpand Collapse
index_id: str
organization_id: Optional[str]
project_id: Optional[str]

Delete Index

import os
from llama_cloud import LlamaCloud

client = LlamaCloud(
    api_key=os.environ.get("LLAMA_CLOUD_API_KEY"),  # This is the default and can be omitted
)
client.beta.indexes.delete(
    index_id="index_id",
)
Returns Examples