> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sabaothcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete an API Key

> Remove an API key permanently

Deletes a key. It stops working immediately and is removed from the list. This can't be undone.

To stop a key working but keep a record of it, [revoke it](/api-reference/api-keys/revoke) instead.

## Path parameters

<ParamField path="id" type="string" required>
  The key's ID.
</ParamField>

## Response

`204 No Content`

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE https://api.sabaothcloud.com/api/v1/api-keys/KEY_ID \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
  ```
</RequestExample>

<ResponseExample>
  ```text 204 theme={null}
  (no content)
  ```

  ```json 404 theme={null}
  {
    "error": "NotFound",
    "message": "API key not found"
  }
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.