$npx -y skills add BerriAI/litellm-skills --skill delete-agentDelete an AI agent from a live LiteLLM proxy. Ask for the agent_id and confirm before calling DELETE /v1/agents/{agent_id}.
| 1 | # Delete Agent |
| 2 | |
| 3 | Remove an AI agent from a live LiteLLM proxy. |
| 4 | |
| 5 | ## Setup |
| 6 | |
| 7 | ``` |
| 8 | LITELLM_BASE_URL — e.g. https://my-proxy.example.com |
| 9 | LITELLM_API_KEY — proxy admin key |
| 10 | ``` |
| 11 | |
| 12 | ## Ask the user |
| 13 | |
| 14 | 1. **agent_id** — if they don't have it, list first: |
| 15 | ```bash |
| 16 | curl -s "$BASE/v1/agents" -H "Authorization: Bearer $KEY" |
| 17 | ``` |
| 18 | 2. **Confirm** — show the agent name and ask for confirmation. |
| 19 | |
| 20 | ## Run |
| 21 | |
| 22 | ```bash |
| 23 | curl -s -X DELETE "$BASE/v1/agents/<agent_id>" \ |
| 24 | -H "Authorization: Bearer $KEY" |
| 25 | ``` |
| 26 | |
| 27 | ## Output |
| 28 | |
| 29 | Confirm deletion. Note that any keys or integrations pointing to this agent will stop working. |