Skip to content
Framework Docs

Delete Index

beta().indexes().delete(IndexDeleteParamsparams = IndexDeleteParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
DELETE/api/v1/indexes/{index_id}

Delete an index.

ParametersExpand Collapse
IndexDeleteParams params
Optional<String> indexId
Optional<String> organizationId
Optional<String> projectId

Delete Index

package com.llamacloud_prod.api.example;

import com.llamacloud_prod.api.client.LlamaCloudClient;
import com.llamacloud_prod.api.client.okhttp.LlamaCloudOkHttpClient;
import com.llamacloud_prod.api.models.beta.indexes.IndexDeleteParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        LlamaCloudClient client = LlamaCloudOkHttpClient.fromEnv();

        client.beta().indexes().delete("index_id");
    }
}
Returns Examples