Internal User management
Bulk Delete Users Action
Delete up to 500 users in one call, taking each out of every team it belongs to. Same authorization as /user/delete: proxy admins may delete anyone, org admins only users inside organizations they administer. Unknown body fields are a 422.
data holds one result per requested user_id, in request order. A row is success: false with an error when the id is unknown, repeated in the request, or outside the caller's scope. Rows that pass those checks are deleted together, in one transaction, so either all of them go or none does.
Example curl:
curl --location 'http://0.0.0.0:4000/management/v1/users/bulk_delete' --header "Authorization: Bearer $LITELLM_MASTER_KEY" --header 'Content-Type: application/json' --data '{"user_ids": ["user-1", "user-2"]}'
post/management/v1/users/bulk_delete
Request
- Base URL: https://docs.litellm.com.cn (the document declares no server; this is the origin it was published from)
- URL: https://docs.litellm.com.cn/management/v1/users/bulk_delete
- Auth: API key in header x-litellm-api-key
Headers
litellm-changed-bystring nullable
Who the caller is acting for; recorded on the audit log entries this call writes.
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.