---
title: "Delete a model from an AI Gateway provider"
method: DELETE
path: "/api/v2/providers/{provider_id}/models/{canonical}"
tags: ["AI Gateway"]
---

# Delete a model from an AI Gateway provider

`DELETE /api/v2/providers/{provider_id}/models/{canonical}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/providers/{provider_id}/models/{canonical}`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `ai_gateway_config_write`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/providers/:provider_id/models/:canonical/delete.ts> (a function with typed inputs; its response is checked against the schema)

Requires `ai_gateway_config_write` and provider Edit. Models and pricing inherit provider access.
Delete a manually managed model catalog entry by its canonical model ID. Discovered entries are read-only.

## Path parameters

- `provider_id` integer, required
- `canonical` string, required

## Response `204`

No Content

## Other responses

- `403`: Forbidden
- `404`: 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/3f70db624329?raw)
