---
title: "Deletes a specific API key."
method: DELETE
path: "/accessmanagement/api-key/{apiKeyId}"
tags: ["accessmanagement - api keys"]
---

# Deletes a specific API key.

`DELETE /accessmanagement/api-key/{apiKeyId}`

## Request

- Base URL: `https://manager.digicertdns.com/v1`
- URL: `https://manager.digicertdns.com/v1/accessmanagement/api-key/{apiKeyId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/digicert/apis/digicert-dns/docs/accessmanagement/api-key/:apiKeyId/delete.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint deletes a specific API key, helping users remove unused or compromised keys to reduce security risks.</br></br>Key features include:</br></br>- **Clear success messaging:** Returns a `204` success code with a confirmation message indicating the successful completion of the requested action.</br>- **Comprehensive error handling:** Returns `400` and `404` error codes with clear descriptions when requests fail.</br>- **Efficient lifecycle management:** Facilitates the removal of an API key, helping maintain a clean and organized system.</br>- **Targeted data deletion:** Utilizes the `apiKeyId` parameter to delete the specified API key, ensuring precise removal with enhanced control and accuracy.

## Path parameters

- `apiKeyId` string, required

## Response `204`

API key deleted successfully.

## Other responses

- `400`: Request is malformed or invalid.
- `404`: Resource not found.

---

[API](https://skmtc.dev/digicert/apis/digicert-dns.md) - [All operations](https://skmtc.dev/digicert/apis/digicert-dns/llms.txt) - [OpenAPI document](https://skmtc.dev/digicert/apis/digicert-dns/revisions/c74fc728cff8?raw)
