Disney is severing ties with “Guardians Of The Galaxy” director James Gunn after a series of old, controversial tweets surface.

An outspoken critic of Donald Trump, Gunn became the target of extreme right-wing personalities who exposed the tweets from 10 years ago that include jokes about rape and pedophilia.

Gunn issued an apology on Twitter, acknowledging his former penchant for making “shocking” and “offensive” jokes.

RELATED: ‘Guardians Of The Galaxy’ Director James Gunn Fires Back At Toxic ‘Star Wars’ Fans: ‘Go To Therapy’

“Many people who have followed my career know when I started, I viewed myself as a provocateur, making movies and telling jokes that were outrageous and taboo. As I have discussed publicly many times, as I’ve developed as a person, so has my work and my humour,” he wrote in a series of tweets.

Walt Disney Studios chairman Alan Horn confirmed Gunn’s dismissal from the Marvel franchise: “The offensive attitudes and statements discovered on James’ Twitter feed are indefensible and inconsistent with our studio’s values, and we have severed our business relationship with him,” the statement reads.

Gunn was in the process of writing the script for the third “Guardians” instalment, with production expected to begin in Atlanta this fall with a targeted 2020 release date.

Earlier this week, Gunn tweeted about an announcement at Comic-Con in Hall H on Friday evening for the “Venom” and “Spider-Man: Into The Spider-Verse” panel. It is unclear what his announcement would entail, though he has no involvement with either project as a writer, director or producer. According to Variety, he will no longer be participating in the event.