delete-user
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDelete User
删除用户
Delete one or more users 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 — 示例:https://my-proxy.example.com
LITELLM_API_KEY — 代理管理员密钥Ask the user
询问用户
- user_id(s) — if they don't have them, list first:
bash
curl -s "$BASE/user/list?page_size=25" -H "Authorization: Bearer $KEY" - Confirm — show the user email/alias and ask for confirmation before deleting.
- 用户ID — 如果用户没有ID,先列出用户:
bash
curl -s "$BASE/user/list?page_size=25" -H "Authorization: Bearer $KEY" - 确认 — 显示用户邮箱/别名,并在删除前请求用户确认。
Run
执行
bash
curl -s -X POST "$BASE/user/delete" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{"user_ids": ["<user_id>"]}'Multiple users:
"user_ids": ["id1", "id2"]bash
curl -s -X POST "$BASE/user/delete" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{"user_ids": ["<user_id>"]}'批量删除用户:
"user_ids": ["id1", "id2"]Output
输出
Show how many users were deleted. Warn if any IDs were not found.
显示已删除的用户数量。若有未找到的ID,给出警告。