Skip to content
Product Docs

Delete Organization

client.Organizations.Delete(ctx, organizationID) error
DELETE/api/v2/organizations/{organization_id}

Delete an organization by ID.

ParametersExpand Collapse
organizationID string

Delete Organization

package main

import (
  "context"

  "github.com/run-llama/llamacloud-admin-go"
  "github.com/run-llama/llamacloud-admin-go/option"
)

func main() {
  client := llamacloudadmin.NewClient(
    option.WithAPIKey("My API Key"),
  )
  err := client.Organizations.Delete(context.TODO(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples