GNOME Bugzilla – Bug 698069
cli: provide a command to delete all configured connections
Last modified: 2014-01-02 18:01:09 UTC
As a maintainance task, it may be reasonable to delete all connections via CLI. I propose the following syntax as a starting point for further discussion. nmcli connection delete --all
I understand why you want this command this week, but I can't imagine anyone ever wanting to do this in the real world. If you have lots of connections, there's probably a reason for most of them (eg, wifi networks you want to remember). And if you don't have lots of connections, then it's easy to delete them one-by-one, and that's better than a delete-all command, because you probably actually want to keep one of them anyway.
(In reply to comment #1) > I understand why you want this command this week, but I can't imagine anyone > ever wanting to do this in the real world. This week is like every other week, IMO. > If you have lots of connections, there's probably a reason for most of them > (eg, wifi networks you want to remember). And if you don't have lots of > connections, then it's easy to delete them one-by-one, and that's better than a > delete-all command, because you probably actually want to keep one of them > anyway. The truth is that you can still delete the saved ones with rm * command in the connection directory. But then you need the 'reload' command with nmcli we were also talking about. This was just an idea, I think we can keep it open for some time in case someone wants to add real use cases, and then, if no relevant feedback comes, we can mark it as WONTFIX.
(In reply to comment #2) > (In reply to comment #1) > > I understand why you want this command this week, but I can't imagine anyone > > ever wanting to do this in the real world. > > This week is like every other week, IMO. No, this week you're testing a tool for creating connections, in a virtual machine where you don't do any other real work. So you've ended up with lots of connections that you don't actually care about, and no connections that you do care about. This does not normally happen to people.
NM bugzilla reorganization... sorry for the bug spam.
(In reply to comment #2) > This was just an idea, I think we can keep it open for some time in case > someone wants to add real use cases, and then, if no relevant feedback comes, > we can mark it as WONTFIX.