Delete a snapshot
client.Snapshots.Delete(ctx, snapshotID) error
/snapshots/{snapshotId}
Delete a snapshot
Parameters
snapshotID string
Delete a snapshot
package main
import (
"context"
"github.com/kernel/hypeman-go"
"github.com/kernel/hypeman-go/option"
)
func main() {
client := hypeman.NewClient(
option.WithAPIKey("My API Key"),
)
err := client.Snapshots.Delete(context.TODO(), "snapshotId")
if err != nil {
panic(err.Error())
}
}