## Delete an account or zone ruleset version `client.rulesets.versions.delete(stringrulesetId, stringrulesetVersion, VersionDeleteParamsparams?, RequestOptionsoptions?): void` **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. - `params: VersionDeleteParams` - `account_id?: string` The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. - `zone_id?: string` The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted }); await client.rulesets.versions.delete('2f2feab2026849078ba485f918791bdc', '1', { account_id: 'account_id', }); ```