---
title: "Delete rule by id"
method: DELETE
path: "/kody-rules/delete-rule-in-organization-by-id"
tags: ["Kody Rules"]
---

# Delete rule by id

`DELETE /kody-rules/delete-rule-in-organization-by-id`

## Request

- Base URL: `http://localhost:3001`
- URL: `http://localhost:3001/kody-rules/delete-rule-in-organization-by-id`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/kodustech/apis/kodus-api/docs/kody-rules/delete-rule-in-organization-by-id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete a rule in the organization by rule id.

## Query parameters

- `ruleId` string, required

## Response `200`

- ApiBooleanResponseDto
  - `statusCode` number, required
  - `type` string, required
  - `data` boolean, required

## Other responses

- `400`: Validation error
- `401`: Not authenticated
- `403`: Insufficient permissions
- `500`: Unexpected error

---

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