Delete User Profile
DELETE/v1/user_profiles/{user_profile_id}
Delete User Profile
Parameters
Returns
Delete User Profile
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"),
)
betaDeletedUserProfile, err := client.Beta.UserProfiles.Delete(
context.TODO(),
"uprof_011CZkZCu8hGbp5mYRQgUmz9",
anthropic.BetaUserProfileDeleteParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", betaDeletedUserProfile.ID)
}Response 200
{
"id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"type": "user_profile_deleted"
}Returns Examples
Response 200
{
"id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"type": "user_profile_deleted"
}