Dan Harmon Rick and Morty

Adult Swim

Dan Harmon, the creator of "Rick and Morty" and "Community," has apologized for a video that resurfaced this week in which he sexually violates a doll.

“In 2009, I made a ‘pilot’ which strove to parody the series 'Dexter' and only succeeded in offending," he said in a statement. "I quickly realized the content was way too distasteful and took the video down immediately. Nobody should ever have to see what you saw and for that, I sincerely apologize.”

The video, titled "Daryl," was posted in 2009 to a website Harmon co-founded. Harmon plays the central character, described as "a baby rapist with a heart of gold," and is seen simulating rubbing his genitals on an infant doll.

The video reappeared on Twitter over Comic-Con weekend, which Harmon and "Ricky and Morty" co-creator Justin Roiland were attending. Backlash ensued and Harmon deleted his Twitter account Monday.

Adult Swim also released a statement about Harmon's video: “At Adult Swim, we seek out and encourage creative freedom and look to push the envelope in many ways, particularly around comedy.

"The offensive content of Dan’s 2009 video that recently surfaced demonstrates poor judgement and does not reflect the type of content we seek out. Dan recognized his mistake at the time and has apologized. He understands there is no place for this type of content here at Adult Swim.”

Harmon is the second notable Hollywood figure to come under fire for old content posted online. James Gunn was fired as director of "Guardians of the Galaxy 3" after a far-right commentator dug up old Twitter posts joking about pedophilia and molestation.