删除用户配置文件
DELETE/v1/user_profiles/{user_profile_id}
删除用户配置文件,例如在终端客户关闭其账户时。
请先停止发送该配置文件的 ID。有关删除后会发生什么,请参阅用户配置文件指南。
Parameters
Returns
删除用户配置文件
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)Response 200
{
"id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"type": "user_profile_deleted"
}Returns Examples
Response 200
{
"id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"type": "user_profile_deleted"
}