Claude Platform Docs

Remove User

$ ant beta:organization:users remove
DELETE/v1/organizations/users/{user_id}

Remove a member from the organization.

Parameters
--user-id: string

ID of the User.

Returns
BetaOrganizationUserRemoveResponse: object{ id, type }
id: string

ID of the User.

type: "user_deleted"

Deleted object type.

For Users, this is always "user_deleted".

Remove User

ant beta:organization:users remove \
  --api-key my-anthropic-api-key \
  --user-id user_id
{
  "id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
  "type": "user_deleted"
}
Returns Examples
{
  "id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
  "type": "user_deleted"
}