I wanted to try the solution from there (and many other sites point to this solution) but the preferred network list and all the buttons (shown in the step 4) are greyed out on my Mac (10.9.5).
How do I remove a known network from my Mac?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
Just unlock (bottom left) the network prefs before hitting the advanced button.
You have to enter a login name with admin rights and the respective password to do so. If it's your personal Mac usually the one and only existing account has admin rights (though the login name doesn't contain 'Admin'). An office/school/university Mac has - depending on the internal guidelines - often several accounts: non-privileged standard user accounts and one or several admin accounts. Only the admin accounts are eligible to change network preferences.
Choose your WIFI-interface and click the advanced button
Remove any unwanted networks