President Donald Trump accepted the resignation of Tom Price, the embattled health and human services secretary, Friday in the midst of a scandal over his use of private planes.

Price's departure came as he's being investigated by the department's inspector general for using private jets for multiple government business trips, even to fly distances often as short as from Washington to Philadelphia.

The scandal infuriated Trump, who viewed the controversy as a needless distraction from his agenda. Over the course of the week, Trump fumed to aides about Price's flights, which he deemed "stupid," according to multiple sources. Instead of moving past the storm, Price's offer to reimburse the government for only a fraction of the flights' costs enraged Trump further.

Price and his aides have insisted that the trips he took by private charter jet had been approved through the usual legal and ethics offices at HHS. But the appearance of a millionaire Cabinet secretary flying routes easily navigated by far cheaper means proved an optics nightmare for an administration already accused of being out of touch with regular Americans.

Below is Price's official resignation letter

Price is the latest casualty in an administration that's seen a high rate of dramatic departures over its first eight months. Since taking office, Trump has dismissed or seen quit his national security adviser, press secretary, communications director, chief strategist, acting attorney general and FBI director. The tumult has come as Trump struggles to fulfill key aspects of his agenda on Capitol Hill, and as his team confronts its most dire challenge yet on a storm-demolished Puerto Rico.

Trump was incensed that Price's actions undermined his vow to "drain the swamp," though Price is not the only Cabinet official to have used private air charters to travel around the country. EPA Administrator Scott Pruitt and Interior Secretary Ryan Zinke have both flown on private planes during their tenures in the administration.

The White House said this week it was examining whether to adopt stricter oversight of Cabinet secretaries' travel plans.

The first sign of Trump's ire emerged on Wednesday, when he said only "we'll see" after being asked if he was planning to fire Price. Neither Trump nor his top aides could say in the following days whether Price retained the President's confidence.

"I was looking into it and I will look into it. I will tell you personally, I'm not happy about it," Trump told reporters. "I am not happy about it I'm going to look at it. I let him know it."

Price himself offered a rosier picture, telling CNN on Thursday evening that he "absolutely" planned to stay on as health secretary -- a claim that was ultimately not meant to be.

Trump, who never grew as close to Price as he has to some of his aides, also viewed the health secretary as an ineffective promoter of Republican plans to repeal and replace the Affordable Care Act, an effort that has failed multiple times over the course of Trump's eight months in office.

During a rally with Boy Scouts in July, Trump quipped that if Price couldn't wrangle the votes, he'd dismiss him.

"He better get them. Oh, he better," Trump said. "Otherwise I'll say, 'Tom, you're fired.' "Price didn't get the votes, but it was his use of private aircraft that ultimately led to his demise in the Trump administration.

Politico first reported Price's use of charter jets for official business last week and found that the secretary has traveled on charter flights at least 24 times since May, citing people familiar with his travel plans and a review of HHS documents.

Charter plane operators estimated 24 flights would have cost $400,000, Politico reported. Commercial trips would have cost thousands of dollars less. The Health and Human Services inspector general is reviewing whether the means of travel was appropriate.

Later, it was revealed that Price also took US military aircraft on two trips abroad, bringing the total cost of his non-commercial travel to more than $1 million. The military flights were approved by the White House.

Price's travel breaks with the precedent set by former President Barack Obama's HHS secretaries Sylvia Mathews Burwell and Kathleen Sebelius, who flew commercially when flying within the US.

Price said in a statement on Thursday that would write a personal check to the US Treasury to cover the cost of his travel on private charter planes.

"The taxpayers won't pay a dime for my seat on those planes," he proclaimed, though it was later revealed he would only pay for his seat and not the total cost of chartering a plane.

An HHS spokesperson said the check would come to $51,887.31, a small percentage of the total cost of the private flights.

Price, both in his role as Trump's health boss and as a Republican congressman from Georgia, was a frequent critic of government spending. He told CNN in April that he wanted to cut redundancy and waste in his agency.

"For us to say, 'OK, let's just throw more money at that system, let's see if more money helps that out,' is the wrong way," Price told CNN's Sanjay Gupta.

While at HHS, Price played an integral part helping craft many iterations of alternatives to Obamacare -- all of which ultimately failed to pass. Price was also part of the executive opioid commission announced by Trump in March.

Prior to his role in the administration, Price was a Georgia representative for over 10 years, and was an orthopedic surgeon for 20 years. He was the third doctor to hold the HHS secretary position.