About delete-user
delete-user is a skill for deleting one or more users from a live LiteLLM proxy. It guides operators to find user IDs, confirm the displayed email or alias, and report deletion results or IDs not found.
Key features
- 01List users to find IDs
- 02Confirm email or alias before deletion
- 03Delete one or multiple users
- 04Report deleted counts and missing IDs
Use cases
- 01Remove users from a LiteLLM proxy
- 02Find user IDs before deletion
- 03Verify deletion results and missing accounts
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ berriai/ litellm-skills --skill delete-userAfter installing, type/delete-userin Claude Code to confirm it loaded.
Details
From the project READMEDelete User
Delete one or more users from a live LiteLLM proxy.
Setup
LITELLM_BASE_URL — e.g. https://my-proxy.example.com
LITELLM_API_KEY — proxy admin key
Ask the user
- user_id(s) — if they don't have them, list first:
curl -s "$BASE/user/list?page_size=25" -H "Authorization: Bearer $KEY" - Confirm — show the user email/alias and ask for confirmation before deleting.
Run
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"]
Output
Show how many users were deleted. Warn if any IDs were not found.
Comments
Markdown supported