from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Delete a specific virtual key
result = portkey.virtual_keys.delete(
slug='VIRTUAL_KEY_SLUG'
)
print(result){}Delete Virtual Key
DELETE
/
virtual-keys
/
{slug}
from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Delete a specific virtual key
result = portkey.virtual_keys.delete(
slug='VIRTUAL_KEY_SLUG'
)
print(result){}Documentation Index
Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Deprecated. Use the Providers API instead. Existing virtual keys continue to work — no code changes needed.
Last modified on May 21, 2026
Was this page helpful?
⌘I

