in src/Amazon.Extensions.CognitoAuthentication/CognitoUser.cs [321:336]
public virtual async Task DeleteAttributesAsync(IList<string> attributeNamesToDelete)
{
DeleteUserAttributesRequest deleteUserAttributesRequest =
CreateDeleteUserAttributesRequest(attributeNamesToDelete);
await Provider.DeleteUserAttributesAsync(deleteUserAttributesRequest).ConfigureAwait(false);
//Update the local Attributes property
foreach (string attribute in attributeNamesToDelete)
{
if (Attributes.ContainsKey(attribute))
{
Attributes.Remove(attribute);
}
}
}