delete-org
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDelete Organization
删除组织
Delete one or more organizations from a live LiteLLM proxy.
从运行中的LiteLLM代理中删除一个或多个组织。
Setup
配置
LITELLM_BASE_URL — e.g. https://my-proxy.example.com
LITELLM_API_KEY — proxy admin keyLITELLM_BASE_URL — e.g. https://my-proxy.example.com
LITELLM_API_KEY — proxy admin keyAsk the user
询问用户
- organization_id(s) — if they don't have them, list first:
bash
curl -s "$BASE/organization/list" -H "Authorization: Bearer $KEY" - Confirm — show the org alias and ask for confirmation before deleting.
- organization_id(s) — 如果用户没有这些ID,先执行以下命令列出所有组织:
bash
curl -s "$BASE/organization/list" -H "Authorization: Bearer $KEY" - 确认 — 显示组织别名,并在删除前请求用户确认。
Run
执行
bash
curl -s -X DELETE "$BASE/organization/delete" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{"organization_ids": ["<org_id>"]}'bash
curl -s -X DELETE "$BASE/organization/delete" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{"organization_ids": ["<org_id>"]}'Output
输出
Show the deleted org ID(s) and alias(es) from the response.
从响应结果中显示已删除的组织ID和别名。