Skip to main content
DELETE
/
api-keys
/
{id}
from portkey_ai import Portkey

# Initialize the Portkey client
portkey = Portkey(
    api_key="PORTKEY_API_KEY",
)

# Delete the API key
result = portkey.api_keys.delete(
    id="API_KEY_ID"
)

print(result)
{}

Documentation Index

Fetch the complete documentation index at: https://portkey-docs-log-export-guide-1773064217.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

id
string<uuid>
required

Response

200 - application/json

OK

The response is of type object.

Last modified on March 9, 2026