Deleting Virtual Key
- Using the API:
- In Python:
curl -X DELETE -H "x-api-key: $JAVELIN_API_KEY" "https://api.javelin.live/v1/admin/providers/openai/keyvault/openai-vkey1"
Javelin Delete Secret Example
from javelin_sdk import (
JavelinClient,
JavelinConfig,
Secret
)
import os
# Retrieve environment variables
javelin_api_key = os.getenv('JAVELIN_API_KEY')
# create javelin client
config = JavelinConfig(
base_url="https://api-dev.javelin.live",
javelin_api_key=javelin_api_key,
llm_api_key=llm_api_key
)
client = JavelinClient(config)
# secret name to delete is "openai-vkey1"
secret_name = "openai-vkey1"
# delete the secret, for async use `await client.adelete_secret(secret_name)`
client.delete_secret(secret_name)