---
title: "Delete Cookie Consent Rule"
method: DELETE
path: "/v1/cookie-consent/rules/{ruleId}"
tags: ["cmpRules"]
---

# Delete Cookie Consent Rule

`DELETE /v1/cookie-consent/rules/{ruleId}`

## Request

- Base URL: `https://api.osano.com`
- URL: `https://api.osano.com/v1/cookie-consent/rules/{ruleId}`
- Auth: API key in header `x-osano-api-key`
- TypeScript: <https://skmtc.dev/osano/apis/osano-api-reference/docs/v1/cookie-consent/rules/:ruleId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes a single Cookie Consent Rule by ID.

## Path parameters

- `ruleId` integer, required

## Response `204`

Success

## Other responses

- `400`: Bad Request
- `404`: Not Found

---

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