The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
Where have I mentioned there was no confirmation dialog?
Besides...in all use-cases I've implemented this, the removable items only appear as a result of an action like a right-click, which makes the removable item(s) appear; "moving the mouse out of the way" is never enough to make said removable items appear on their own, so what you're describing is rather unlikely to happen.
You want to talk about dangerous - how about you're in the middle of typing a long paragraph of text, then some random Windows message pops up, defaulting with the focus on OK, and you happen to hit Space or Enter as you continue typing (before you might not even have realized something came up and stole focus away). The dialog box thinks you've confirmed the action it was asking of you, but it was on the screen for such a short amount of time you have no idea what it said or where it even came from. True story, and I can confirm it's happened to me repeatedly.
I was elaborating on a direct response to the message where I said I try to implement the same. If SSMS doesn't prompt for confirmation when deleting something important, then that's its problem, not mine.
It turns out you can just open the list, hover over a server name and press delete on your keyboard and it'll be gone (without warning).
I interpreted the "without warning" bit as meaning there's no confirmation prompt...? You mentioned you were adding the same functionality in your own apps... but clearly you're implementing an improvement over Microsoft's attempt!
I had a similary discovery, that if you open the Alt-Tab panel of running programs, and keep the Alt key down, you can with your mouse close all those windows that you no longer need by mouse clicking their upper right hand X. It may have been around for many years, but I discovered it a few months ago.
The connection settings are held in a dictionary, so you can easily use the REMOVE method to pick things out of that list; then serialise to file to persist any changes.
Not quite as easy as deleting through the UI; but useful if you wanted to automate the management of this list in some way (e.g. have scripts preset to change the list according to which system/client you're working with).
What do you mean Mr McGee? And why are you wearing a Raspberry Beret?
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash One Fine Saturday. 24/04/2004
The idea itself isn't so weird, except that this already exists...
It goes like this "Hey, I noticed we're going the same direction and you don't have an umbrella, you're welcome to join me, I'm [state your name]."
You'll probably get some weird looks, but after the initial surprise people could get quite sociable (too bad I'm not).
If things hit it off there's a neat little trick to keep in touch, it's called switching out numbers, but it's a secret technique that not many people know of.
There are a few apps available to help in this regard though, the Contacts app comes to mind, as do WhatsApp and Facebook, or maybe even LinkedIn if you're both on your way to work.
Facebook is particularly easy, just say something like "Hey [name], do you mind if I add you on Facebook?" and they'll usually say "Not at all" because they can't really stop you and it's quite easy to block you afterwards.
I've only once shared an umbrella with strangers which was at a festival where we were all cramped together and I just so happened to have an umbrella (actually it was a friend's, but I was holding it at the time).
While it wasn't particularly awkward, no friends were made that day.
The real challenge is being outside in the rain with an umbrella and finding a stranger without one that's also going in the same direction...