---
title: "Delete Code Scan Exclusion"
method: DELETE
path: "/v1/projects/{project_id}/code-scan/exclusions/{rule_id}"
tags: ["code-scan"]
---

# Delete Code Scan Exclusion

`DELETE /v1/projects/{project_id}/code-scan/exclusions/{rule_id}`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/projects/{project_id}/code-scan/exclusions/{rule_id}`
- Auth: none declared

Remove an exclusion rule (Developer+); its masked findings reappear at the
next read. An unknown or foreign `rule_id` is a 404, never a silent success.

## Path parameters

- `project_id` string, required
- `rule_id` string, required

## Response `200`

Successful Response

- CodeScanExclusionDeleted
  - `deleted` boolean, required
  - `uuid` string, required

## Other responses

- `422`: Validation Error

---

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