Elon Musk. Scott Olson/Getty Images Tesla CEO Elon Musk publicly disavowed President Donald Trump's immigration ban on Twitter Wednesday — and promptly deleted the tweets seconds later.

Musk said the Muslim immigration ban is "not right" in two separate tweets before deleting them from Twitter in perhaps his strongest statement yet against the controversial policy. He said the tweets were earlier drafts he sent accidentally after a Twitter user asked what prompted the deletion.

Trump's immigration ban temporarily bars citizens from seven majority-Muslim countries and all refugees from entering the US while the US reviews its vetting procedures. A federal judge has suspended the ban and the Ninth Circuit denied the government's appeal to lift the temporary restraining order on it.

Musk sits on Trump's business advisory council and manufacturing jobs initiative. The Tesla and SpaceX CEO has come under fire for his close ties to the Trump administration, with some customers claiming to have cancelled their Model 3 orders as a result.

Uber CEO Travis Kalanick stepped down from Trump's business advisory council after receiving criticism both internally and externally. After news about Kalanick's decision broke, Musk said he would remain on the council and issued a statement that reads, in part:

"In tomorrow's meeting, I and others will express our objections to the recent executive order on immigration and offer suggestions for changes to the policy. Advisory councils simply provide advice and attending does not mean that I agree with actions by the Administration."

The carefully worded statement matched Musk's general approach when discussing the Trump administration. Musk had released several statements relating to the immigration ban, but he has never directly come out against the ban:

Musk's now-deleted tweets would have marked the first time he issued a statement in clear disapproval of the ban.

Tesla and SpaceX have signed an amicus brief along with 97 other companies opposing Trump's immigration ban. An amicus brief is a legal document signed by parties with a strong interest in a case who are not a part of the litigation. The brief was signed by major tech companies like Apple, Facebook, and Google.

Other tech CEOs on Trump's manufacturing initiative include Intel CEO Brian Krzanich and Dell CEO and founder Michael Dell. IBM CEO Ginny Rometty sits on Trump's business advisory council with Musk.

Musk also joins other auto executives with close ties to Trump. General Motors CEO Mary Barra sits on Trump's business advisory council and Ford CEO Mark Fields sits on Trump's manufacturing initiative.