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

To permanently remove:

systemctl stop NetworkManager

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

systemctl startNetworkManager
nmcli -f bridge con delete bridge-br0

This will delete it for you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.