delete-org

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Delete 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 key
LITELLM_BASE_URL  — e.g. https://my-proxy.example.com
LITELLM_API_KEY   — proxy admin key

Ask the user

询问用户

  1. organization_id(s) — if they don't have them, list first:
    bash
    curl -s "$BASE/organization/list" -H "Authorization: Bearer $KEY"
  2. Confirm — show the org alias and ask for confirmation before deleting.
  1. organization_id(s) — 如果用户没有这些ID,先执行以下命令列出所有组织:
    bash
    curl -s "$BASE/organization/list" -H "Authorization: Bearer $KEY"
  2. 确认 — 显示组织别名,并在删除前请求用户确认。

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和别名。