---
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}`

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