NEW YORK (AP) -- For decades, Bill Cosby cast himself as America's dad and then as America's granddad, a moralist with tough talk for young people about acting responsibly. It was that image that proved to be his undoing.
The judge who unsealed documents on Monday revealing Cosby's 2005 admission that he obtained quaaludes to give to young women before sex cited the comedian's public moralizing in deciding to release the testimony.
The testimony, from a decade-old lawsuit, has called into question Cosby's denials that he drugged and sexually assaulted women.
Cosby had fought the request from The Associated Press to unseal the material.
But U.S. District Judge Eduardo Robreno in Philadelphia ruled: "The stark contrast between Bill Cosby, the public moralist, and Bill Cosby, the subject of serious allegations concerning improper (and perhaps criminal) conduct, is a matter to which the AP -- and by extension the public -- has a significant interest."
Cosby's moralizing also triggered the most recent round of allegations by more than two dozen women who say he assaulted them. Last October, 31-year-old comedian Hannibal Buress set off the storm when he noted the contrast between Cosby's image and the accusations.
"He gets on TV, 'Pull your pants up, black people. I was on TV in the '80s! I can talk down to you because I had a successful sitcom!'" Buress said. "Yeah, but you rape women, Bill Cosby, so turn the crazy down a couple notches."
As leader of television's Huxtable clan in the 1980s, Cosby was the dad who did things right. It was a persona that made him beloved and rich.
And Cosby gave back. He and wife Camille offered millions in donations to colleges and other institutions across the U.S., including $20 million to historically black Spelman College in 1988. He also freely gave advice and opinions on society's failings, which weren't welcomed as much as the donations.
One such commentary, a decade ago during a commemoration of the 50th anniversary of the Supreme Court decision on segregated schools, was cited by Robreno in his ruling. Cosby criticized a lack of parenting among poor families, complaining about young people's poor speech, dress and dropout rates.
Cosby has aggressively sought to protect his public image as accusations came forth. His representatives have cast doubt on his accusers, and Cosby sought to get an AP reporter who had asked about them not to use his comments.
He also testified in the 2005 case that he granted the National Enquirer an interview about accusations against him in exchange for the tabloid squelching another story about an alleged assault.
Even before Monday's release of testimony, the allegations had severely damaged Cosby's career. NBC walked away from plans to make another Cosby sitcom, TV Land took reruns of "The Cosby Show" off the air, and Netflix shelved plans for a Cosby standup special.
Cosby mounted a standup comedy tour that was dotted with cancellations, and no further appearances are scheduled, according to the industry trade publication Pollstar.
The Bounce TV network, which is geared toward black viewers, announced Tuesday that it is taking its reruns of "Cosby," the comic's 1990s-era CBS show, off the air immediately.
And the smaller Centric cable network, which is affiliated with BET and aimed at black women, said it is dropping "The Cosby Show." The 1980s NBC series was a big chunk of Centric's schedule, airing four hours a day and in weekend marathons once a month.
It doesn't appear that "The Cosby Show" is airing regularly anywhere else now in the U.S., said Bill Carroll, an expert on the syndication market for Katz Television. He said he doubts it will return while its star, who turns 78 on Sunday, is alive.
It remains to be seen how many minds the newly released testimony will change. But actress and singer Jill Scott, who had publicly supported Cosby last fall, said she was "completely disgusted" by what he had to say under oath.
"I stood by a man I respected and loved," Scott said via Twitter. "I was wrong."
Associated Press correspondent Michael Sisak in Philadelphia and Television Writer Lynn Elber in Los Angeles contributed to this report.