delete-model
Installation
SKILL.md
Delete Model
Remove a model from a live LiteLLM proxy.
Setup
LITELLM_BASE_URL — e.g. https://my-proxy.example.com
LITELLM_API_KEY — proxy admin key
Ask the user
- Model name or model_id — if they give a name, look up the ID first:
curl -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']) " - Confirm — show the model name and ask for confirmation before deleting.
Run
curl -s -X POST "$BASE/model/delete" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{"id": "<model_id>"}'
Output
Show the success message. Warn the user that any keys scoped to this model name will start getting errors.
Related skills
More from berriai/litellm-skills
add-key
Generate a new API key on a live LiteLLM proxy. Asks for alias, scope (user/team), budget, models, and expiry, then calls POST /key/generate. Use when the user wants to create, generate, or provision an API key on a LiteLLM proxy instance.
9add-mcp
>
9delete-mcp
>
9update-key
>
9update-mcp
>
9update-model
>
9