Delete zone
Delete zone
client.Zones.Delete(ctx, zoneID) error
DELETE/zones/{zoneId}
Permanently deletes a zone and all its associated resources
Parameters
zoneID string
Delete zone
package main
import (
"context"
"github.com/keycardai/keycard-go"
"github.com/keycardai/keycard-go/option"
)
func main() {
client := keycard.NewClient(
option.WithAPIKey("My API Key"),
)
err := client.Zones.Delete(context.TODO(), "zoneId")
if err != nil {
panic(err.Error())
}
}