Claude Platform Docs

사용자 프로필 삭제

user_profiles.delete(user_profile_id, **kwargs) -> DeletedUserProfile
DELETE/v1/user_profiles/{user_profile_id}

사용자 프로필을 삭제합니다. 예를 들어 최종 고객이 계정을 해지한 경우에 사용합니다.

먼저 프로필 ID 전송을 중지하세요. 삭제 후 어떤 일이 일어나는지는 사용자 프로필 가이드를 참조하세요.

Parameters
user_profile_id: String⁠Path parameter

The ID of the user profile to delete (uprof_...).

workspace_id: optional String⁠Header parameter

Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).

Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.

Returns
class DeletedUserProfile { type: :user_profile_deleted, id }
type: :user_profile_deleted

Object type. Always user_profile_deleted.

id: String

Identifier of the deleted user profile, prefixed uprof_.

사용자 프로필 삭제
require "anthropic"

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

deleted_user_profile = anthropic.user_profiles.delete("uprof_011CZkZCu8hGbp5mYRQgUmz9")

puts(deleted_user_profile)
Returns Examples
Response 200
{
  "id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
  "type": "user_profile_deleted"
}