This argument has been repeatedly discredited. In the examples, you've given those ports and capabilities were replaced by better ports and/or capabilities.
The headphone jack is as universal to sound and other components as a doorknob, steering wheel, computer monitor to a door, vehicle, or computer, respectively. Gimping phones by removing the headphone jack and replacing it with a "dongle" or Bluetooth only makes the UX more cumbersome because now they have to manage another set of batteries and accessories that were not there before.
Now, you'll tell me about the joys of going completely wireless. I was on a 4-hour flight and my headphones ran out of juice. I had to stop listening to my device and charge them so as not to disturb other passengers. Another example of the joy of all BT/dongle life, I was at work and wanted to listen to a podcast without disturbing anyone else. Oh wait, I left my trusty dongle in my other work bag. Oh no! But the iPod Classic that I have in my desk along with a ... wait for it ... wired headphones didn't let me down. I listened to 1,000s of songs without EVER needing the headphones to be charged or dongled!.
The only reason why these companies are doing this is to generate other streams of income with the sales of dongles, licensing agreements, and expensive BT headphones.