> For the complete documentation index, see [llms.txt](https://docs.nebulablock.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nebulablock.com/api-reference/platform-api/list-api-keys/delete-api-key.md).

# Delete API Key

Permanently delete a Nebula Block API key. Applications using it stop authenticating immediately.

Permanently delete an API key. The key stops working immediately.

## HTTP Request

`DELETE` `{API_URL}/keys/{key_id}`

where `API_URL = https://api.nebulablock.com/api/v1`.

## Path Parameters

| Parameter | Requirement | Type      | Description                                                                           |
| --------- | ----------- | --------- | ------------------------------------------------------------------------------------- |
| `key_id`  | Required    | `integer` | The ID of the key, from [List API Keys](/api-reference/platform-api/list-api-keys.md) |

## Response Attributes

#### status `string`

`success` or `failed`.

#### message `string`

A description of the result.

## Example

#### Request

```bash
curl -X DELETE '{API_URL}/keys/5' \
-H 'Authorization: Bearer {TOKEN}'
```

#### Response

```json
{
    "data": [],
    "message": "API key deleted successfully",
    "status": "success"
}
```

> **Important:** Deleting a key cannot be undone. Any application still using it will start receiving authentication errors.

## See also

* [List API Keys](/api-reference/platform-api/list-api-keys.md)
* [Create API Key](/api-reference/platform-api/list-api-keys/create-api-key.md)
* [Update API Key](/api-reference/platform-api/list-api-keys/update-api-key.md)
