Claude Platform Docs

Rimuovi utente

organization.users.remove(user_id) -> UserRemoveResponse
DELETE/v1/organizations/users/{user_id}

Rimuovi un membro dall'organizzazione.

Parameters
user_id: str⁠Path parameter

ID of the User.

Returns
class UserRemoveResponse: type: "user_deleted"; id
type: Literal["user_deleted"]

Deleted object type.

For Users, this is always "user_deleted".

defaultuser_deleted
id: str

ID of the User.

Rimuovi utente
import os
from anthropic import Anthropic

client = Anthropic(
    api_key=os.environ.get(
        "ANTHROPIC_API_KEY"
    ),  # This is the default and can be omitted
)
user = client.organization.users.remove(
    "user_id",
)
print(user.id)
Returns Examples
Response 200
{
  "id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
  "type": "user_deleted"
}