Ralph Dibny from ‘The Flash’ fired due to offensive tweets

Resurfaced old tweets allegedly posted by actor Hartley Sawyer prior to joining The CW series “The Flash” have resulted in him being fired.

“Hartley Sawyer will not be returning for season seven of The Flash,” said a statement from The CW, producers Warner Bros. TV and Berlanti Productions and executive producer Eric Wallace released on Monday read. “In regards to Mr. Sawyer’s posts on social media, we do not tolerate derogatory remarks that target any race, ethnicity, national origin, gender, or sexual orientation. Such remarks are antithetical to our values and policies, which strive and evolve to promote a safe, inclusive and productive environment for our workforce.”

Last week actress Skai Jackson tweeted screen grabs of several of the Sawyer’s purported tweets, writing “Hartley Sawyer, you have been exposed…”

One shows a tweet from 2012 which read, “The only thing keeping me from doing mildly racist tweets is the knowledge that Al Sharpton would never stop complaining about me”.

Sawyer, 36 made a comment about Black Lives Matter.

Without mentioning specific tweets, the actor — who played Ralph Dibny on the series for three seasons — apologized in a lengthy statement posted on his verified Instagram account on May 30 — hours after the screen grabs originally started circulating.

“I’m not here to make excuses – regardless of the intention, my words matter and they carry profound consequences,” the statement read. “And mine can and have caused pain and embarrassment along with feelings I can only imagine, to supporters and fans, my cast mates, the crew, my colleagues and friends.”

“I owe them all an apology. And I owe each of you an apology,” he added. “Thank you for holding me accountable.”

His Twitter account has been deleted.

Eric Wallace, executive producer of “The Flash,” posted a statement Monday saying the tweets “broke my heart and made me mad as hell.”

“I, too am committed to bringing permanent change to the work environment here on The Flash,” Wallace wrote. “Yes, this is a family show. But it’s for all families. That includes Black and Brown ones.”