White House Counsel Don McGahn left the Trump administration on Wednesday, White House officials said, the latest in a string of high-profile departures.

News of McGahn's departure from the White House was first reported by The New York Times, which cited two people close to him. Two White House officials confirmed to NBC News that Wednesday was McGahn's last day.

McGahn's departure comes a day after President Donald Trump told The Associated Press in a Tuesday interview that Washington lawyer Pat Cipollone to serve as his next White House counsel.

McGahn was tapped by then president-elect Donald Trump during the transition in November of 2016.

In August, Trump said on Twitter that McGahn would be leaving his post in the fall after the confirmation of Brett Kavanaugh to the Supreme Court, which occurred earlier this month. McGahn was not aware that the president would be tweeting about his future but was not upset by it, according to an administration official at the time.

The announcement by Trump about McGahn's planned departure came less than two weeks after The New York Times reported that McGahn had spent 30 hours talking with the special counsel Robert Mueller's team, which is investigating Russian interference with the 2016 presidential election and other matters.

At the time, the newspaper reported that McGahn “provided the investigators examining whether Mr. Trump obstructed justice a clear view of the president's most intimate moments with his lawyer."

McGahn on his last day on Wednesday attended a cabinet meeting and had a goodbye chat with Trump, a White House official said.

McGahn is a former member of the Federal Election Commission who was one of Trump's longest-serving aides, having joined Trump's 2016 presidential campaign as counsel.

When it was revealed that McGahn had cooperated with Mueller's probe, Trump tweeted that he allowed McGahn and other requested members of the White House staff to cooperate fully with the special counsel.

McGahn reportedly threatened to quit his post in 2017 after Trump ordered Mueller to be fired in June of that year, according to The New York Times. According to the report, Trump backed down after McGahn threatened to resign.

Last week, Trump's ambassador to the United Nations, Nikki Haley, announced her resignation. That announcement reportedly caught administration officials off guard. Haley, former governor of South Carolina, is to leave the administration at the end of the year, she and Trump announced.

McGahn served as the White House’s liaison to three independent-leaning Republican senators in the bruising confirmation battle over Kavanaugh, the AP reported. Kavanaugh was narrowly confirmed by the Senate on a 50-48 vote on Oct. 6.

"Don McGahn's a really good guy, been with me for a long time," Trump said in August after he announced that McGahn would be leaving.

McGahn was seen as behind the administration's successful effort to get conservative judges onto federal courts. Sen. Chuck Grassley, an Iowa Republican who is chairman of the Senate Judiciary Committee, at the time that Trump announced the White House counsel would be leaving expressed disappointment with the move.