EPA Administrator Scott Pruitt is the latest Trump administration Cabinet official to be ousted or abruptly leave, after his resignation was accepted Thursday by President Donald Trump.

“Within the Agency Scott has done an outstanding job, and I will always be thankful to him for this,” the president tweeted.

Andrew Wheeler, who will become the acting administrator, previously worked for Republican Sen. James M. Inhofe of Oklahoma. Inhofe had defended Pruitt, a former Oklahoma attorney general, after meeting with him last month.

“I have no doubt that Andy will continue on with our great and lasting EPA agenda. We have made tremendous progress and the future of the EPA is very bright!” Trump said on Twitter.