Delete multiple members in a single operation with partial failure handling. #### Path Parameters **`organization_id`** string required Organization ID #### Request Body **`user_ids`** array of strings required Array of user IDs to delete. Maximum 1,000 members per operation. ## Returns Returns a summary of the operation with details of any failures. ## Notes - Organization owner is automatically skipped - Partial failures are reported - Creates audit log entries for successful deletions ## Authorization Requires Admin or Owner role. ```bash curl -X POST https://api.aitronos.com/v1/organizations/org_abc123/users/delete-bulk \ -H "X-API-Key: $FREDDY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "user_ids": [ "usr_abc123", "usr_def456", "usr_xyz789" ] }' ``` ```python import requests import os api_key = os.environ["FREDDY_API_KEY"] org_id = "org_abc123" response = requests.post( f"https://api.aitronos.com/v1/organizations/{org_id}/users/delete-bulk", headers={ "X-API-Key": api_key, "Content-Type": "application/json" }, json={ "user_ids": [ "usr_abc123", "usr_def456", "usr_xyz789" ] } ) result = response.json() ``` ```javascript const response = await fetch('https://api.aitronos.com/v1/organizations/org_abc123/users/delete-bulk', { method: 'POST', headers: { 'Authorization': `Bearer ${process.env.FREDDY_API_KEY}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ user_ids: [ 'usr_abc123', 'usr_def456', 'usr_xyz789' ] }) }); const result = await response.json(); ``` **Response:** 200 OK ```json { "success_count": 2, "failure_count": 1, "failed_operations": [ { "id": "usr_xyz789", "error": "Cannot delete organization owner" } ] } ```