## 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` Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. - `zone_id?: string` Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. - `dry_run?: boolean` Query param: Validates the request without persisting changes when set to `true`. Responses that normally return 200 return `result: null`; endpoints that normally return 204 continue to return 204. ### Example ```typescript 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' }); ```