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