James Gunn has been fired as the director of Marvel's "Guardians of the Galaxy" franchise over a batch of old, since-deleted Twitter posts.

Gunn has been an outspoken critic of President Donald Trump. In response, conservative personalities, dug up the director's old tweets from 2010 and 2011 in which he joked about pedophilia, rape, the Holocaust, and 9/11.

Gunn has since deleted his Twitter account, but before he did, he  posted a thread that began, "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 humor."

He concluded by saying, "I used to make a lot of offensive jokes. I don’t anymore. I don’t blame my past self for this, but I like myself more and feel like a more full human being and creator today. Love you to you all."

Walt Disney Studios chairman Alan Horn in a statement, "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."

Gunn had been working on a script for "Guardians of the Galaxy 3" and production was set to begin this fall in Atlanta for an expected 2020 release.

The "Guardians" movies have been massive hits for Marvel and Disney, racking up more than $1.6 billion worldwide.