Skip to content
Product Docs

Delete Project

client.Projects.Delete(ctx, projectID, body) error
DELETE/api/v2/projects/{project_id}

Delete a project by ID.

ParametersExpand Collapse
projectID string
body ProjectDeleteParams
OrganizationID param.Field[string]Optional

Delete Project

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.Projects.Delete(
    context.TODO(),
    "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    llamacloudadmin.ProjectDeleteParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples