---
title: dots.v2.genAi.models.api_keys.byApi_key_uuid().delete()
description: Delete API Key for a Model
product: Reference
url: https://docs.digitalocean.com/reference/dots/reference/agent-platform-api/genai-delete-model-api-key/
last_updated: "2026-11-18"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# dots.v2.genAi.models.api_keys.byApi_key_uuid().delete()

Generated on 18 Nov 2026 from DoTs version [`v1.25.0`](https://github.com/digitalocean/dots/releases/tag/v1.25.0)

## Usage

```typescript
client.v2.genAi.models.api_keys.byApi_key_uuid(api_key_uuid).delete(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiDeleteModelAPIKeyOutput>
```

## Description

To delete an API key for a model, send a DELETE request to [`/v2/gen-ai/models/api_keys/{api_key_uuid}`](https://docs.digitalocean.com/reference/api/reference/agent-platform-api/index.html.md#genai_delete_model_api_key).

## Parameters

`api_key_uuid` string required

Example: `"123e4567-e89b-12d3-a456-426614174000"`

API key for an agent.

## Request Sample

## Show Request Sample

```typescript
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.genAi.models.api_keys
    .byApi_key_uuid("\"123e4567-e89b-12d3-a456-426614174000\"").delete();
```

## Response Example

## Show Response Example

```json
{
  "api_key_info": {
    "created_at": "2023-01-01T00:00:00Z",
    "created_by": "12345",
    "deleted_at": "2023-01-01T00:00:00Z",
    "name": "example name",
    "secret_key": "example string",
    "uuid": "123e4567-e89b-12d3-a456-426614174000"
  }
}
```

## More Information

See [`/v2/gen-ai/models/api_keys/{api_key_uuid}`](https://docs.digitalocean.com/reference/api/reference/agent-platform-api/index.html.md#genai_delete_model_api_key) in the API reference for additional detail on responses, headers, parameters, and more.