Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

docs(proxy): shorten bulk delete endpoint descriptions to one sentence

ryan450f7deff843
diff --git a/litellm/proxy/management_endpoints/internal_user_endpoints.py b/litellm/proxy/management_endpoints/internal_user_endpoints.py
index 6b11847f09d..c9fc6720490 100644
--- a/litellm/proxy/management_endpoints/internal_user_endpoints.py
+++ b/litellm/proxy/management_endpoints/internal_user_endpoints.py
@@ -2515,15 +2515,7 @@ async def bulk_delete_user(
description="The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability",
),
) -> BulkDeleteUserResponse:
- """
- Delete up to 500 users and remove each one from every team they belong to. Same authorization as
- `/user/delete`. Returns one result per user id, in order.
-
- ```bash
- curl -X POST 'http://localhost:4000/user/bulk_delete' -H 'Authorization: Bearer sk-1234' \\
- -H 'Content-Type: application/json' -d '{"user_ids": ["user-1", "user-2"]}'
- ```
- """
+ """Delete up to 500 users, removing each from every team; same authorization as `/user/delete`."""
from litellm.proxy.proxy_server import (
litellm_proxy_admin_name,
prisma_client,
diff --git a/litellm/proxy/management_endpoints/team_endpoints.py b/litellm/proxy/management_endpoints/team_endpoints.py
index 8626c073e55..b5e3978a2a8 100644
--- a/litellm/proxy/management_endpoints/team_endpoints.py
+++ b/litellm/proxy/management_endpoints/team_endpoints.py
@@ -3464,16 +3464,7 @@ async def bulk_team_member_delete(
data: BulkTeamMemberDeleteRequest,
user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth), # noqa: B008 # FastAPI dependency injection
) -> BulkTeamMemberDeleteResponse:
- """
- Remove up to 500 members (each named by `user_id` or `user_email`) from one team. Same authorization
- as `/team/member_delete`. Returns one result per member, in order.
-
- ```bash
- curl -X POST 'http://0.0.0.0:4000/team/bulk_member_delete' -H 'Authorization: Bearer sk-1234' \\
- -H 'Content-Type: application/json' \\
- -d '{"team_id": "team-1234", "members": [{"user_id": "user1"}, {"user_email": "[email protected]"}]}'
- ```
- """
+ """Remove up to 500 members from one team; same authorization as `/team/member_delete`."""
from litellm.proxy.management_helpers.bulk_user_deletion import bulk_remove_team_members
from litellm.proxy.proxy_server import prisma_client, proxy_logging_obj, user_api_key_cache
diff --git a/ui/litellm-dashboard/src/lib/http/schema.d.ts b/ui/litellm-dashboard/src/lib/http/schema.d.ts
index 23c989a3220..58f64b64949 100644
--- a/ui/litellm-dashboard/src/lib/http/schema.d.ts
+++ b/ui/litellm-dashboard/src/lib/http/schema.d.ts
@@ -15067,14 +15067,7 @@ export interface paths {
put?: never;
/**
* Bulk Team Member Delete
- * @description Remove up to 500 members (each named by `user_id` or `user_email`) from one team. Same authorization
- * as `/team/member_delete`. Returns one result per member, in order.
- *
- * ```bash
- * curl -X POST 'http://0.0.0.0:4000/team/bulk_member_delete' -H 'Authorization: Bearer sk-1234' \
- * -H 'Content-Type: application/json' \
- * -d '{"team_id": "team-1234", "members": [{"user_id": "user1"}, {"user_email": "[email protected]"}]}'
- * ```
+ * @description Remove up to 500 members from one team; same authorization as `/team/member_delete`.
*/
post: operations["bulk_team_member_delete_team_bulk_member_delete_post"];
delete?: never;
@@ -16516,13 +16509,7 @@ export interface paths {
put?: never;
/**
* Bulk Delete User
- * @description Delete up to 500 users and remove each one from every team they belong to. Same authorization as
- * `/user/delete`. Returns one result per user id, in order.
- *
- * ```bash
- * curl -X POST 'http://localhost:4000/user/bulk_delete' -H 'Authorization: Bearer sk-1234' \
- * -H 'Content-Type: application/json' -d '{"user_ids": ["user-1", "user-2"]}'
- * ```
+ * @description Delete up to 500 users, removing each from every team; same authorization as `/user/delete`.
*/
post: operations["bulk_delete_user_user_bulk_delete_post"];
delete?: never;