James Gunn has been fired as director of Guardians Of The Galaxy Vol. 3 because of old tweets that emerged where he joked about subjects including paedophilia and rape.

Walt Disney Studios chairman Alan Horn said that the tweets are indefensible and the studio has 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.