Skip to content
Get started

Delete volume

client.Volumes.Delete(ctx, id) error
delete/volumes/{id}

Delete volume

ParametersExpand Collapse
id string
Delete volume
package main

import (
  "context"

  "github.com/onkernel/hypeman-go"
  "github.com/onkernel/hypeman-go/option"
)

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