---
title: "Deletes a custom rule"
method: DELETE
path: "/1.1/protection/custom-rules/{customRuleId}"
tags: ["Custom rules"]
---

# Deletes a custom rule

`DELETE /1.1/protection/custom-rules/{customRuleId}`

## Request

- Base URL: `https://customer-api.datadome.co`
- URL: `https://customer-api.datadome.co/1.1/protection/custom-rules/{customRuleId}`
- Auth: API key in header `x-api-key`

## Path parameters

- `customRuleId` integer, required

## Response `200`

Acknowledges the deletion of the custom rule

- ApiResponse2
  - `status` integer
  - `message` string
  - `data` string
  - `errors` string[]

## Other responses

- `404`: Rule not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/datadome/apis/management-api.md) - [All operations](https://skmtc.dev/datadome/apis/management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/datadome/apis/management-api/revisions/80062169b99e?raw)
