Claude Platform Docs

사용자 프로필 삭제

client.UserProfiles.Delete(ctx, userProfileID, body) (*DeletedUserProfile, error)
DELETE/v1/user_profiles/{user_profile_id}

사용자 프로필 삭제

Parameters
userProfileID string⁠Path parameter

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

body UserProfileDeleteParams
WorkspaceID param.Opt[string] OptionalHeader 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
type DeletedUserProfile struct { Type: "user_profile_deleted"; ID }
Type UserProfileDeleted

Object type. Always user_profile_deleted.

ID string

Identifier of the deleted user profile, prefixed uprof_.

사용자 프로필 삭제
package main

import (
	"context"
	"fmt"

	"github.com/anthropics/anthropic-sdk-go/v2"
	"github.com/anthropics/anthropic-sdk-go/v2/option"
)

func main() {
	client := anthropic.NewClient(
		option.WithAPIKey("my-anthropic-api-key"),
	)
	deletedUserProfile, err := client.UserProfiles.Delete(
		context.TODO(),
		"uprof_011CZkZCu8hGbp5mYRQgUmz9",
		anthropic.UserProfileDeleteParams{},
	)
	if err != nil {
		panic(err.Error())
	}
	fmt.Printf("%+v\n", deletedUserProfile.ID)
}
Returns Examples
Response 200
{
  "id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
  "type": "user_profile_deleted"
}