Tesla CEO Elon Musk followed through on a threat to leave his roles on a pair of White House councils after President Donald Trump pulled the U.S. out of the Paris climate accord on Thursday.

Minutes after Trump’s announcement in the White House Rose Garden, Musk tweeted, “am departing presidential councils.” The Tesla TSLA, +4.42% chief had said Wednesday that he had done “all I can” to advise Trump to remain in the accord, under which the U.S. and other nations have pledged to reduce greenhouse gas emissions.