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

# Remove custom rule

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

## Request

- Base URL: `https://app.aikido.dev/api/public/v1`
- URL: `https://app.aikido.dev/api/public/v1/repositories/sast/custom-rules/{rule_id}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://app.aikido.io/api/oauth/token` scopes: `custom_sast_rules:write`

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.dev/aikido/apis/aikido-security-api-documentation.md) - [All operations](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/revisions/da8691338133?raw)
