Skip to main content
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)
{}
Deprecated. Use the Providers API instead. Existing virtual keys continue to work — no code changes needed.

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

slug
string
required

Response

Successful response

The response is of type object.

Last modified on March 17, 2026