---
title: "Delete Scanning Rule"
method: DELETE
path: "/api/v2/sensitive-data-scanner/config/rules/{rule_id}"
tags: ["Sensitive Data Scanner"]
---

# Delete Scanning Rule

`DELETE /api/v2/sensitive-data-scanner/config/rules/{rule_id}`

Delete a given rule.

## Path parameters

- `rule_id` string, required

## Request body

- SensitiveDataScannerRuleDeleteRequest — Delete rule request.
  - `meta` SensitiveDataScannerMetaVersionOnly, required — Meta payload containing information about the API.
    - `version` integer — Version of the API (optional).

## Response `200`

OK

- SensitiveDataScannerRuleDeleteResponse — Delete rule response.
  - `meta` SensitiveDataScannerMetaVersionOnly — Meta payload containing information about the API.
    - `version` integer — Version of the API (optional).

## Other responses

- `400` — Bad Request
- `403` — Authentication Error
- `404` — Not Found
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
