from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Delete a specific virtual key
result = portkey.providers.delete(
slug="PROVIDER_SLUG",
workspace_id=""
)
print(result)
{}
from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Delete a specific virtual key
result = portkey.providers.delete(
slug="PROVIDER_SLUG",
workspace_id=""
)
print(result)
{}
Provider slug
optional, needed when using organisation admin keys
Successful response
The response is of type object
.
Was this page helpful?