---
title: "Delete custom rule"
method: POST
path: "/api/v2/rules/delete"
tags: ["Rules"]
---

# Delete custom rule

`POST /api/v2/rules/delete`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v2/rules/delete`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Delete a custom rule

## Request body

- DeleteRuleInput
  - `organizationId` string
  - `ruleId` string, required

## Response `200`

Successful response

- object
  - `success` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Bad Request

---

[API](https://skmtc.dev/zeropath/apis/zeropath-api-2.md) - [All operations](https://skmtc.dev/zeropath/apis/zeropath-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/zeropath/apis/zeropath-api-2/revisions/ea6ae4b68cd3?raw)
