Stop and delete instance
client.Instances.Delete(ctx, id) error
/instances/{id}
Stop and delete instance
Parameters
id string
Stop and delete instance
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.Instances.Delete(context.TODO(), "id")
if err != nil {
panic(err.Error())
}
}