Skip to content
DocsOpenAPI spec

    Delete Object Storage Key

    client.Storage.Keys.Delete(ctx, keyID) error
    DELETE/v1/storage/keys/{key_id}

    Delete an Object Storage Key. It stops working immediately.

    ParametersExpand Collapse
    keyID string

    Delete Object Storage 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.Storage.Keys.Delete(context.TODO(), "key_id")
      if err != nil {
        panic(err.Error())
      }
    }
    
    Returns Examples