## Delete an account or zone ruleset `client.rulesets.delete(stringrulesetId, RulesetDeleteParamsparams?, RequestOptionsoptions?): void` **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. - `params: RulesetDeleteParams` - `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.delete('2f2feab2026849078ba485f918791bdc', { account_id: 'account_id' }); ```