---
title: "Delete a price rule"
method: DELETE
path: "/admin/price_rules/{price_rule_id:(?:\\\\d+)}.json"
tags: ["PriceRule"]
---

# Delete a price rule

`DELETE /admin/price_rules/{price_rule_id:(?:\\d+)}.json`

## Request

- Base URL: `https://shop-name.onshopbase.com`
- URL: `https://shop-name.onshopbase.com/admin/price_rules/{price_rule_id:(?:\\d+)}.json`
- Auth: API key in header `APP_ACCESS_TOKEN`

Deletes a price rule

## Query parameters

- `price_rule_id` number, required

## Response `200`

OK

- DeletePriceRuleResponse
  - `message` string
  - `success` boolean

---

[API](https://skmtc.dev/shopbase/apis/shopbase-internal-api.md) - [All operations](https://skmtc.dev/shopbase/apis/shopbase-internal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shopbase/apis/shopbase-internal-api/revisions/353ccde6240d?raw)
