---
title: "Delete Existing AI Model API Key"
method: DELETE
path: "/api/atlas/v2/groups/{groupId}/aiModelApiKeys/{apiKeyId}"
tags: ["AI Model API Keys"]
---

# Delete Existing AI Model API Key

`DELETE /api/atlas/v2/groups/{groupId}/aiModelApiKeys/{apiKeyId}`

Delete an existing AI model API key in the given group.

## Path parameters

- `groupId` string, required
- `apiKeyId` string, required

## Query parameters

- `envelope` boolean
- `pretty` boolean

## Response `204`

No Content

## Other responses

- `400` — Bad Request.
- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not Found.
- `429` — Too Many Requests.
- `500` — Internal Server Error.

---

[API](https://skmtc.net/mongodb/apis/atlas-admin-api.md) · [All operations](https://skmtc.net/mongodb/apis/atlas-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mongodb/atlas-admin-api/versions/e37e8ef8429f/schema)
