It uninstalled a bunch of dependent packages too, including my graphics driver. I probably could have looked through the apt history and rolled them all back, but I don’t remember how to do that off the top of my head, and reinstalling took about 20 minutes.
Surely it asked you to confirm before it remove it and all that uses it. It was just doing as you told it to do and will have asked you to confirm. You can't blame it!
How many times should it ask you if your sure? If it was serious, as in, it could actually break stuff, it gets you to type "do as I say" or something.