U.S. Army Brigadier Gen. Anthony Tata (Ret.) said President Trump was justified in revoking the security clearance of John Brennan, who Tata described as a "clear and present danger" to the nation.

Trump on Wednesday revoked the former CIA director's clearance, White House Press Secretary Sarah Sanders announced, saying Brennan "has a history that calls his credibility into question."

In response, Brennan tweeted hours later: "This action is part of a broader effort by Mr. Trump to suppress freedom of speech & punish critics. It should gravely worry all American's, including intelligence professionals, about the cost of speaking out. My principles are worth far more than clearances. I will not relent."

This action is part of a broader effort by Mr. Trump to suppress freedom of speech & punish critics. It should gravely worry all Americans, including intelligence professionals, about the cost of speaking out. My principles are worth far more than clearances. I will not relent. https://t.co/TNzOxhP9ux

Brennan has admitted that he voted for the Communist candidate for president of the United States when he was a college student in 1976.

Tata questioned Brennan's record as CIA director, on everything from the Iran nuclear deal to ISIS to Russian election meddling.

He also noted that Brennan has repeatedly called for Trump to be removed from office, noting that question 29 on the security clearance form asks, "Have you ever supported overthrowing the U.S. government?"

"I think that John Brennan is a clear and present danger and a threat to this nation," Tata said. "He supports the overthrow of this particular president, and he needed to have his access to information revoked."