## Delete an account or zone ruleset `client.Rulesets.Delete(ctx, rulesetID, body) error` **delete** `/{accounts_or_zones}/{account_or_zone_id}/rulesets/{ruleset_id}` Deletes all versions of an existing account or zone ruleset. ### Parameters - `rulesetID string` The unique ID of the ruleset. - `body RulesetDeleteParams` - `AccountID param.Field[string]` The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. - `ZoneID param.Field[string]` The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ### Example ```go package main import ( "context" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/option" "github.com/cloudflare/cloudflare-go/rulesets" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) err := client.Rulesets.Delete( context.TODO(), "2f2feab2026849078ba485f918791bdc", rulesets.RulesetDeleteParams{ }, ) if err != nil { panic(err.Error()) } } ```