---
title: "Delete an AI custom ruleset"
method: DELETE
path: "/api/v2/static-analysis/ai/rulesets/{ruleset_name}"
tags: ["Static Analysis"]
---

# Delete an AI custom ruleset

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

## Request

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

Delete an AI custom ruleset by name.

## Path parameters

- `ruleset_name` string, required

## Response `200`

Successfully deleted

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Ruleset not found
- `429`: Too many requests
- `500`: Internal Server Error

---

[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)
