Last active
May 16, 2019 18:41
-
-
Save fredeerock/755d5b6753a1c5bb47b611f9d914070d to your computer and use it in GitHub Desktop.
Remove non-activated network connections from NetworkManager.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
nmcli -f UUID,STATE con show | tail -n +2 | grep -v activated | awk '{print $1}' | while read line; do nmcli con delete uuid $line; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment