Delete Index
client.Beta.Indexes.Delete(ctx, indexID, body) error
DELETE/api/v1/indexes/{index_id}
Delete Index
package main
import (
"context"
"github.com/stainless-sdks/llamacloud-prod-go"
"github.com/stainless-sdks/llamacloud-prod-go/option"
)
func main() {
client := llamacloudprod.NewClient(
option.WithAPIKey("My API Key"),
)
err := client.Beta.Indexes.Delete(
context.TODO(),
"index_id",
llamacloudprod.BetaIndexDeleteParams{
},
)
if err != nil {
panic(err.Error())
}
}