Loading...
Loading...
Delete a model from a live LiteLLM proxy. Asks for the model name or model_id and confirms before calling POST /model/delete. Use when the user wants to remove, delete, or unregister a model from a LiteLLM proxy instance.
npx skill4agent add berriai/litellm-skills delete-modelLITELLM_BASE_URL — e.g. https://my-proxy.example.com
LITELLM_API_KEY — proxy admin keycurl -s "$BASE/model/info" -H "Authorization: Bearer $KEY" | python3 -c "
import sys,json
for m in json.load(sys.stdin).get('data',[]):
print(m['model_info']['id'], m['model_name'])
"curl -s -X POST "$BASE/model/delete" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{"id": "<model_id>"}'