nmcli connection delete 'old-wifi'

Category: Local Network & Public Hosting

nmcli connection delete 'old-wifi'

Delete a connection profile permanently

This removes the named profile and all its stored settings, including saved Wi-Fi passwords, so the machine will no longer autoconnect to that network. There is no undo, and any active connection using the profile is dropped. Export important profiles with nmcli connection export before deleting.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.