There are several such drugs, or at least ones that have that side effect. Some hardened sex offenders (no pun intended) are given a drug to reduce or kill their libido. Also, a common side effect of many anti-depression drugs is reduced libido and reduced ability to reach orgasm. Also I've heard birth control pills have that effect on some women -- don't know what would happen if a man took those pills.
I agree with you about those ED drug commercials. They should add a warning at the end of the commercial: "Be sure to ask your wife before taking the drug to see if she's interested in you having erections again". Unfortunately, there are too many cases where the wife was just as happy not to have to deal with sex anymore, and the blue pill just added to the "chores" she now has to deal with again, or worry that her husband is going to go outside the marriage to explore is rejuvinated sexual functioning. Which is why some people recommend therapy along with the introduction of Viagra to deal with the sudden changes in sexual dynamics.
I heard somewhere that sales of the anti-ED drugs fell short of expectations. Maybe they forgot to figure that maybe half of the wives of the 30 million men with ED are NOT interested in solving the problem. If I remember my stats, the incidence of low libido among menopausal women is greater than the incidence of ED among men around that age.
However, I like the fantasy of the attractive adoring woman in all those ED drug commercials, who seems to be looking forward to his renewed sexual functioning. Yep, nice fantasy!