you can't unlearn spells.
Luckily in the magic menu every spell is categorized by "school of magic" so you don't have to scroll through all the spells in the game just to find one.
If you're referring to your "favorites" list of spells, then yes, you can remove a spell from your favorites the same way you added it.