---
title: "DELETE /workspaces/{workspaceId}/apikeys/{keyName}"
method: DELETE
path: "/workspaces/{workspaceId}/apikeys/{keyName}"
---

# DELETE /workspaces/{workspaceId}/apikeys/{keyName}

`DELETE /workspaces/{workspaceId}/apikeys/{keyName}`

Deletes a Grafana API key for the workspace.

In workspaces compatible with Grafana version 9 or above, use workspace service accounts instead of API keys. API keys will be removed in a future release.

## Path parameters

- `keyName` string, required
- `workspaceId` string, required

## Response `200`

Success

- DeleteWorkspaceApiKeyResponse
  - `keyName` string, required — The name of the key that was deleted.
  - `workspaceId` string, required — The ID of the workspace where the key was deleted.

## Other responses

- `480` — ResourceNotFoundException
- `481` — ThrottlingException
- `482` — ConflictException
- `483` — ValidationException
- `484` — AccessDeniedException
- `485` — InternalServerException

---

[API](https://skmtc.net/aws/apis/grafana.md) · [All operations](https://skmtc.net/aws/apis/grafana/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/grafana/versions/76cc5bd3d508/schema)
