Skip to content
Product Docs

Remove Users From Organization

organizations.users.delete(strmember_user_id, UserDeleteParams**kwargs)
DELETE/api/v1/organizations/{organization_id}/users/{member_user_id}

Remove users from an organization.

ParametersExpand Collapse
organization_id: str
member_user_id: str
body: Optional[Sequence[str]]

Remove Users From Organization

import os
from llama_cloud_admin import LlamaCloudAdmin

client = LlamaCloudAdmin(
    api_key=os.environ.get("LLAMA_CLOUD_API_KEY"),  # This is the default and can be omitted
)
client.organizations.users.delete(
    member_user_id="member_user_id",
    organization_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
Returns Examples