Claude Platform Docs

Eliminar perfil de usuario

DeletedUserProfile UserProfiles.Delete(parameters, cancellationToken = default)
DELETE/v1/user_profiles/{user_profile_id}

Eliminar perfil de usuario

Parameters
UserProfileDeleteParams parameters
required string userProfileID⁠Path parameter

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

string workspaceID⁠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; }
JsonElement Type = "user_profile_deleted"

Object type. Always user_profile_deleted.

required string ID

Identifier of the deleted user profile, prefixed uprof_.

Eliminar perfil de usuario
using System;
using Anthropic.Models.UserProfiles;

UserProfileDeleteParams parameters = new()
{
    UserProfileID = "uprof_011CZkZCu8hGbp5mYRQgUmz9"
};

var deletedUserProfile = await client.UserProfiles.Delete(parameters);

Console.WriteLine(deletedUserProfile);
Returns Examples
Response 200
{
  "id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
  "type": "user_profile_deleted"
}