Claude Platform Docs

Elimina profilo utente

DeletedUserProfile userProfiles().delete(params = UserProfileDeleteParams.none(), requestOptions = RequestOptions.none())
DELETE/v1/user_profiles/{user_profile_id}

Elimina profilo utente

Parameters
UserProfileDeleteParams params
Optional<String> userProfileId⁠Path parameter

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

Optional<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; }
JsonValue type = "user_profile_deleted"

Object type. Always user_profile_deleted.

String id

Identifier of the deleted user profile, prefixed uprof_.

Elimina profilo utente
package com.anthropic.example;

import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.userprofiles.DeletedUserProfile;
import com.anthropic.models.userprofiles.UserProfileDeleteParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        AnthropicClient client = AnthropicOkHttpClient.fromEnv();

        DeletedUserProfile deletedUserProfile = client.userProfiles().delete("uprof_011CZkZCu8hGbp5mYRQgUmz9");
    }
}
Returns Examples
Response 200
{
  "id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
  "type": "user_profile_deleted"
}