---
title: "Delete API key"
method: DELETE
path: "/v4/organizations/{organizationId}/aiServices/models/apiKeys/{apiKeyId}"
tags: ["Model Services API Keys (AI Data Plane)"]
---

# Delete API key

`DELETE /v4/organizations/{organizationId}/aiServices/models/apiKeys/{apiKeyId}`

Deletes an existing API Key for the given region in the organization.

In order to access this endpoint, the provided API key must have at least one of the following roles:
    - Organization Owner

To learn more, see [Organization, Project, and Database Access Overview](https://docs.couchbase.com/cloud/organizations/organization-projects-overview.html).

## Response `204`

API key deleted successfully.

## Other responses

- `401` — The client does not have the valid credentials to access this resource.
- `403` — The client does not have the necessary permissions to access this resource.
- `404` — The requested resource was not found.
- `409` — Returned when there is a conflict with the current state of a resource.
- `429` — Returned when the client exceeds the rate limit for the given APIKey.
- `500` — An unexpected error occurred in the server while processing this request.

---

[API](https://skmtc.dev/couchbase/apis/couchbase-capella-management-api.md) · [All operations](https://skmtc.dev/couchbase/apis/couchbase-capella-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/couchbase/couchbase-capella-management-api/revisions/8a095fcfed91/schema)
