Azure, PowerShell

Set-MsolUser to remove alternate email address

To change the AlternateEmailAddresses, you cannot set it to $null however, it needs to be a array as below

Get-MsolUser -userprincipalname manu@exchangeonline.in | Set-MsolUser -AlternateEmailAddresses @()