How do you use nmcli to delete a wifi connection by name?

From what I've read, it only allows deletion via UUID:

nmcli connection delete <uuid>

The simplest way I've found to delete by name is to lookup the UUID from the name and pass that in:

nmcli con delete `nmcli --fields NAME,UUID con list | grep -i mynetworkname | awk '{print $2}'`

Is there a simpler way?

4 Answers 4


To delete a wifi connection type :

nmcli connection delete id <connection name>

You can just type

nmcli connection delete CONNECTION_NAME
nmcli -f bridge con delete bridge-br0

This will delete it for you


To permanently remove:

systemctl stop NetworkManager

rm /etc/NetworkManager/system-connections/dummy-dummy0.nmconnection

systemctl startNetworkManager

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .