Deleting Gateway
- Using the API:
- In Python:
curl -X DELETE -H "x-api-key: $JAVELIN_API_KEY" "https://api-dev.javelin.live/v1/admin/gateways/corporate"
from javelin_sdk import (
JavelinClient,
JavelinConfig,
Gateway
)
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)
# Gateway name to delete is "corporate"
gateway_name = "corporate"
# Delete the gateway, for async use 'await client.adelete_gateway(gateway_name)'
client.delete_gateway(gateway_name)