Skip to content
Get started

Delete a tool

client.ToolSets.Tools.Delete(ctx, toolSetID, id) error
DELETE/v1/tool_sets/{toolSetId}/tools/{id}

Deletes a tool in the tool set

ParametersExpand Collapse
toolSetID string
id string

Delete a tool

package main

import (
  "context"

  "github.com/cadenya/cadenya-go"
  "github.com/cadenya/cadenya-go/option"
)

func main() {
  client := cadenya.NewClient(
    option.WithAPIKey("My API Key"),
  )
  err := client.ToolSets.Tools.Delete(
    context.TODO(),
    "toolSetId",
    "id",
  )
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples