Skip to content
API Reference

Delete

client.Zones.Secrets.Delete(ctx, id, params) error
DELETE/zones/{zone_id}/secrets/{id}
ParametersExpand Collapse
id string
params ZoneSecretDeleteParams
ZoneID param.Field[string]

Path param: A globally unique opaque identifier

minLength1
XClientRequestID param.Field[string]optional

Header param: Unique request identifier specified by the originating caller and passed along by proxies.

formatuuid

Delete

package main

import (
  "context"

  "github.com/keycardai/keycard-go"
)

func main() {
  client := keycard.NewClient(

  )
  err := client.Zones.Secrets.Delete(
    context.TODO(),
    "id",
    keycard.ZoneSecretDeleteParams{
      ZoneID: "x",
    },
  )
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples