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: String⁠Path parameter

ID of the User.

Returns
class UserRemoveResponse { type: :user_deleted, id }
type: :user_deleted

Deleted object type.

For Users, this is always "user_deleted".

id: String

ID of the User.

Rimuovi utente
require "anthropic"

anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")

user = anthropic.organization.users.remove("user_id")

puts(user)
Returns Examples
Response 200
{
  "id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
  "type": "user_deleted"
}