James Gunn has been fired as director of Guardians Of The Galaxy Vol. 3 after old tweets emerged in which he joked about subjects including 9/11, the Holocaust and paedophilia.
Walt Disney Studios chairman Alan Horn said that the tweets were indefensible and that the studio had severed ties with Gunn.
Gunn has been writer and director of the Guardians Of The Galaxy franchise from the start, taking an obscure Marvel Comics title about a group of misfits and turning it into two huge hits that together totalled more than $1.5 billion in global box office revenues.
On Thursday, Gunn sent several tweets saying he was sorry for trying in the past to get laughs through shock value.
The Guardians franchise stars Chris Pratt, Zoe Saldana, Dave Bautista and features the voices of Bradley Cooper and Vin Diesel.
Gunn issued a statement on Friday apologising for the tweets.
He said. "My words of nearly a decade ago were, at the time, totally failed and unfortunate efforts to be provocative.
"I have regretted them for many years since — not just because they were stupid, not at all funny, wildly insensitive, and certainly not provocative like I had hoped, but also because they don’t reflect the person I am today or have been for some time.
"Regardless of how much time has passed, I understand and accept the business decisions taken today. Even these many years later, I take full responsibility for the way I conducted myself then."
Gunn’s current Twitter account is heavy on left-leaning politics, and some on the right with whom he had sparred found and promoted the tweets from 2008 to 2011 that led to his firing.
Disney did not announce a replacement director for Guardians of the Galaxy Vol. 3.
Gunn had been writing the script and it is not clear how far along he was or whether new writers will be brought in. Marvel Studios has not announced a release date, though Gunn had said 2020 was the target.