Skip to content
  • Auto
  • Light
  • Dark
Get Started

Delete

Delete
client.Catalogs.Delete(ctx, id, body) (*CatalogDeleteResponse, error)
delete/api/v1/catalogs/{id}

Delete a catalog.

Parameters
idstring

The Id of the RequestCatalog to delete.

bodyBodyfieldCatalogDeleteParams
Hide ParametersShow Parameters
Bodyfield
optional
param.Field[any]

Delete a request catalog by Id. It uses URL value for input.

Returns
CatalogDeleteResponseinterface

Empty response with a status code indicating success.

Request example Go
package main

import (
  "context"
  "fmt"

  "github.com/stainless-sdks/-go"
  "github.com/stainless-sdks/-go/option"
)

func main() {
  client := conductoronesdk.NewClient(
    option.WithAPIKey("My API Key"),
  )
  catalog, err := client.Catalogs.Delete(
    context.TODO(),
    "id",
    conductoronesdk.CatalogDeleteParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", catalog)
}
200 Example
{}