---
title: "Delete a rule"
method: DELETE
path: "/rules/{ruleId}"
tags: ["Rules"]
---

# Delete a rule

`DELETE /rules/{ruleId}`

Delete a rule.

## Path parameters

- `ruleId` string, uuid, required

## Response `200`

Rules information

- object
  - `result` 'success' | 'error', required — Result of the request
  - `action` 'deleteRule', required — The id of the action
  - `data` object, required
    - `rules` Rule[], required
      - `id` string, uuid — Rule id
      - `displayName` string — Rule name
      - `shortDescription` string — One line rule description
      - `longDescription` string — Rule documentation
      - `directives` string[] — Directives linked to the rule
      - `targets` object[] — Node and special groups targeted by that rule
        - `include` object, required — list of groups to include in rule application
          - `or` RuleTarget[]
        - `exclude` object, required — list of groups to exclude from rule application
          - `or` RuleTarget[]
      - `enabled` boolean — Is the rule enabled
      - `system` boolean — If true it is an internal Rudder rule
      - `tags` object[]
      - `policyMode` string
      - `status` object
        - `value` string
        - `details` string

---

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