How do I delete a network from my Mac?

I removed it from network preferences in the advanced pane but it still appears connected in my list. 

I also tried looking for it in Keychain Access but it's not there and I'm still connected.