---
updatedAt: 2025-10-09T17:33:21.000Z
agentTools:
  projectIndex: https://docs.uplynk.com/llms.txt
---

# Delete API-Key

### /owners/api-key/delete

Deletes an API key.

Deleting an API key takes effect immediately. Any tokenized playback URLs generated with this key will be immediately invalidated.

A request parameter is described below.

| Request Parameter | Type   | Description                           |
| ----------------- | ------ | ------------------------------------- |
| key\_to\_delete   | string | Identifies the API key to be deleted. |

A response parameter is described below.

| Response Parameter | Type | Description                                                                       |
| ------------------ | ---- | --------------------------------------------------------------------------------- |
| error              | int  | Indicates either an error code or 0 to indicate the API key's status was deleted. |

Sample request/response:

The `Call` function, which is imported from `API Auth` for V2 APIs (see below), prepares the message body and digital signature.

<TutorialTile
  backgroundColor="#055b96"
  emoji="🔓"
  id="67e1aab8839d83004dcf9173"
  link="https://docs.uplynk.com/v2.0/recipes/api-auth-for-classic-authentication-v2-apis"
  slug="api-auth-for-classic-authentication-v2-apis"
  title="API Auth for Classic Authentication (V2 APIs)"
/> 

```python
from uplynk_api2_auth import Call

print(Call('/api2/owners/api-key/delete', key_to_delete='b846d67fb5125796cd85d1b486347dd6'))

{
    "error" : 0
}
```