Deleting Template
- Using the API:
- In Python:
curl -X DELETE -H "x-api-key: $JAVELIN_API_KEY" "https://api.javelin.live/v1/admin/processors/dp/templates/InspectPII"
Javelin Delete Template Example
from javelin_sdk import (
JavelinClient,
JavelinConfig,
Template
)
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)
# template name to delete is "InspectPII"
template_name = "InspectPII"
# delete the template, for async use `await client.adelete_template(template_name)`
client.delete_template(template_name)