How can you forget a wi-fi connection you've used

ch flag

I have used a wi-fi connection that requires a password. But it is flaky and I now have my own wi-fi to use. But occasionally my computer still uses the first wi-fi. If I could make my ubuntu forget that password, it wouldn't use try the flaky connection anymore. (I am using Ubuntu 18.04.05 LTS)

ChanganAuto avatar
us flag
System settings > Wi-Fi. Click the cogwheel. Can you see a huge red button?
24601 avatar
in flag
If you go to `Network -> Settings` can you not see the connection there where you can turn it off?
de flag

I suggest a GUI alternative to remove the connection. I presume you are using the GNOME environment.

Go to: the System status area; Click the Wifi connection; Go to WIFI settings from the drop-down; Click the icon that resembles three dots arranged vertically; Select known Wi-Fi networks; Select the Wi-Fi connection and Click 'Forget' to remove the connection.

bo flag

You can delete all known networks by running the following command:

sudo rm /etc/NetworkManager/system-connections/*

Alternatively, you can use the rm command to delete the individual network by name.

First, run the following command to list all saved networks:

ls /etc/NetworkManager/system-connections/

Then, delete the network by name. For example, if the network is named "coffee-shop", you would use the following command:

sudo rm /etc/NetworkManager/system-connections/coffee-shop

Finally, restart NetworkManager to apply the changes:

sudo systemctl restart network-manager

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.