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{ type: "user_deleted", id }
type: "user_deleted"

Deleted object type.

For Users, this is always "user_deleted".

id: string

ID of the User.

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