## Delete an account or zone ruleset version `client.Rulesets.Versions.Delete(ctx, rulesetID, rulesetVersion, body) error` **delete** `/{accounts_or_zones}/{account_or_zone_id}/rulesets/{ruleset_id}/versions/{ruleset_version}` Deletes an existing version of an account or zone ruleset. ### Parameters - `rulesetID string` The unique ID of the ruleset. - `rulesetVersion string` The version of the ruleset. - `body VersionDeleteParams` - `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.Versions.Delete( context.TODO(), "2f2feab2026849078ba485f918791bdc", "1", rulesets.VersionDeleteParams{ }, ) if err != nil { panic(err.Error()) } } ```