# delete-model

Removes a model from a LiteLLM proxy after looking up its ID and asking for confirmation.

Skill by LiteLLM. Category: Agent craft.

## Install

Project (for this project only):

```sh
npx skills add berriai/litellm-skills --skill delete-model
```

Works with: Claude Code, Codex CLI, Cursor, Antigravity, Copilot CLI, opencode.

Global (for every project on this machine):

```sh
npx skills add berriai/litellm-skills --skill delete-model -g
```

Works with: Claude Code, Codex CLI, Cursor, Antigravity, Copilot CLI, opencode.

## Tags

- Runs on your computer: It runs as a program on your machine, with your access.
- Runs shell commands: Its steps run shell commands in your terminal.

## Security audits

- Gen Agent Trust Hub: Pass
- Socket: Pass
- Snyk: Pass

Installs: 127. Installs counted by skills.sh. [Open on skills.sh](https://www.skills.sh/berriai/litellm-skills/delete-model)

## Source

[Open the source](https://github.com/berriai/litellm-skills/tree/HEAD/delete-model). Checked 2026-10-10. This summary may contain AI-generated text, so it can be wrong. Check the source before you rely on it.

## SKILL.md

````markdown
---
name: delete-model
description: "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."
license: MIT
compatibility: Requires curl.
metadata:
  author: BerriAI
  version: "1.0"
allowed-tools: Bash(curl:*)
---

# 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

1. **Model name or model_id** — if they give a name, look up the ID first:
   ```bash
   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'])
   "
   ```
2. **Confirm** — show the model name and ask for confirmation before deleting.

## Run

```bash
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.
````

- Previous: [add-key](https://syn4pse.dev/terminal/litellm-add-key.md)
- Next: [add-mcp](https://syn4pse.dev/terminal/litellm-add-mcp.md)
- [Terminal](https://syn4pse.dev/terminal.md)
- [Suggest a change](mailto:terminal@syn4pse.dev?subject=Terminal%20suggestion)
