---
title: "Remove custom rule"
method: DELETE
path: "/repositories/sast/custom-rules/{rule_id}"
---

# Remove custom rule

`DELETE /repositories/sast/custom-rules/{rule_id}`

Remove a custom semgrep rule

## Path parameters

- `rule_id` integer, required

## Response `200`

The custom rule has successfully been removed

- object
  - `success` integer — the integer 1 indicating success

## Other responses

- `404` — Custom rule not found

---

[API](https://skmtc.net/aikido/apis/authorization.md) · [All operations](https://skmtc.net/aikido/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aikido/authorization/versions/5445e7c21137/schema)
