$npx -y skills add BerriAI/litellm-skills --skill delete-teamDelete one or more teams from a live LiteLLM proxy. Ask for the team_id(s) and confirm before calling POST /team/delete.
| 1 | # Delete Team |
| 2 | |
| 3 | Delete one or more teams 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. **team_id(s)** — if they don't have them, list first: |
| 15 | ```bash |
| 16 | curl -s "$BASE/team/list" -H "Authorization: Bearer $KEY" |
| 17 | ``` |
| 18 | 2. **Confirm** — show the team alias and ask for confirmation before deleting. |
| 19 | |
| 20 | ## Run |
| 21 | |
| 22 | ```bash |
| 23 | curl -s -X POST "$BASE/team/delete" \ |
| 24 | -H "Authorization: Bearer $KEY" \ |
| 25 | -H "Content-Type: application/json" \ |
| 26 | -d '{"team_ids": ["<team_id>"]}' |
| 27 | ``` |
| 28 | |
| 29 | Multiple teams: `"team_ids": ["id1", "id2"]` |
| 30 | |
| 31 | ## Output |
| 32 | |
| 33 | Show the `deleted_teams` list from the response. |