Eliminar perfil de usuario
DELETE/v1/user_profiles/{user_profile_id}
Delete a user profile, for example when the end customer closes their account.
Stop sending the profile's ID first. See the User profiles guide for what happens after a delete.
Parameters
Returns
Eliminar perfil de usuario
import os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get(
"ANTHROPIC_API_KEY"
), # This is the default and can be omitted
)
deleted_user_profile = client.user_profiles.delete(
user_profile_id="uprof_011CZkZCu8hGbp5mYRQgUmz9",
)
print(deleted_user_profile.id)Response 200
{
"id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"type": "user_profile_deleted"
}Returns Examples
Response 200
{
"id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"type": "user_profile_deleted"
}