---
title: "Delete a value rule set"
method: DELETE
path: "/v1/ads/value-rule-sets/{valueRuleSetId}"
tags: ["Ad Accounts"]
---

# Delete a value rule set

`DELETE /v1/ads/value-rule-sets/{valueRuleSetId}`

Deletes the rule set (Meta's `POST /{value-rule-set-id}/delete_rule_set`, a custom
action edge rather than an HTTP DELETE on its side). Ad sets pointing at it are not
modified here; detach them first with `valueRulesApplied: false` on
`PUT /v1/ads/ad-sets/{adSetId}`.

## Path parameters

- `valueRuleSetId` string, required

## Query parameters

- `accountId` string, required

## Response `200`

Value rule set deleted

- object
  - `valueRuleSetId` string
  - `message` string

## Other responses

- `400` — Invalid input, or Meta rejected the delete. A bad id comes back as GraphMethodException code 100 / subcode 33, which reads like a permission error rather than a 404.
- `401` — Unauthorized
- `501` — Only supported on Meta (facebook/instagram)

---

[API](https://skmtc.net/zernio/apis/zernio-api.md) · [All operations](https://skmtc.net/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zernio/zernio-api/versions/51932b099b2f/schema)
