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