Skip to content
Docs

Delete API Key

client.APIKeys.Delete(ctx, apiKeyID) error
DELETE/v1/api_keys/{api_key_id}

Delete an API key

ParametersExpand Collapse
apiKeyID string

Delete API Key

package main

import (
  "context"

  "github.com/nirvana-labs/nirvana-go"
  "github.com/nirvana-labs/nirvana-go/option"
)

func main() {
  client := nirvana.NewClient(
    option.WithAPIKey("My API Key"),
  )
  err := client.APIKeys.Delete(context.TODO(), "api_key_id")
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples