---
title: "Delete Custom Ruleset"
method: DELETE
path: "/api/v2/static-analysis/custom/rulesets/{ruleset_name}"
tags: ["Static Analysis"]
---

# Delete Custom Ruleset

`DELETE /api/v2/static-analysis/custom/rulesets/{ruleset_name}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/static-analysis/custom/rulesets/{ruleset_name}`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Delete a custom ruleset

## Path parameters

- `ruleset_name` string, required

## Response `200`

Successfully deleted

## Other responses

- `400`: Bad request
- `401`: Unauthorized - custom rules not enabled
- `404`: Ruleset not found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
