Skip to content
  • Auto
  • Light
  • Dark
Get Started

Delete

Delete Automation
client.Automations.Delete(ctx, id, body) (*AutomationDeleteResponse, error)
delete/api/v1/automations/{id}

Invokes the c1.api.automations.v1.AutomationService.DeleteAutomation method.

Parameters
idstring

The id field.

Hide ParametersShow Parameters
Bodyfield
optional
param.Field[any]

The DeleteAutomationRequest message.

Returns
AutomationDeleteResponseinterface

The DeleteAutomationResponse message.

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"),
  )
  automation, err := client.Automations.Delete(
    context.TODO(),
    "id",
    conductoronesdk.AutomationDeleteParams{

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