curl -i -X DELETE -L "https://api.box.net/2.0/users/12345/avatar" \
-H "authorization: Bearer <ACCESS_TOKEN>"
await client.avatars.deleteUserAvatar(user.id);
client.avatars.delete_user_avatar(user.id)
await client.Avatars.DeleteUserAvatarAsync(userId: user.Id);
String userID = "33333";
BoxUser user = new BoxUser(api, userID);
user.deleteAvatar();
client.user('33333').delete_avatar()
bool isDeleted = await client.UsersManager.DeleteUserAvatarAsync(userId);
client.users.deleteAvatar('22222', () => {
console.log('User avatar deleted!');
});
client.users.deleteAvatar(userId: "33333") { result in
guard case .success = result else {
print("Error deleting avatar")
return
}
print("Avatar successfully deleted")
}