Skip to content

Delete Agent Data

client.Beta.AgentData.Delete(ctx, itemID, body) (*BetaAgentDataDeleteResponse, error)
DELETE/api/v1/beta/agent-data/{item_id}

Delete agent data by ID.

ParametersExpand Collapse
itemID string
body BetaAgentDataDeleteParams
OrganizationID param.Field[string]optional
ProjectID param.Field[string]optional
ReturnsExpand Collapse
type BetaAgentDataDeleteResponse map[string, string]

Delete Agent Data

package main

import (
  "context"
  "fmt"

  "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"),
  )
  agentData, err := client.Beta.AgentData.Delete(
    context.TODO(),
    "item_id",
    llamacloudprod.BetaAgentDataDeleteParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", agentData)
}
{
  "foo": "string"
}
Returns Examples
{
  "foo": "string"
}