Skip to content

Delete Index

client.Beta.Indexes.Delete(ctx, indexID, body) error
DELETE/api/v1/indexes/{index_id}

Delete an index.

ParametersExpand Collapse
indexID string
body BetaIndexDeleteParams
OrganizationID param.Field[string]optional
ProjectID param.Field[string]optional

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())
  }
}
Returns Examples