Delete volume
client.Volumes.Delete(ctx, id) error
/volumes/{id}
Delete volume
Parameters
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())
}
}