Gov. Andrew Cuomo on Tuesday minimized his own subways chief’s...

New York City transit boss Andy Byford resigned from his position last week amid frustrations with Gov. Andrew Cuomo — and then changed his mind, the MTA confirmed Friday.

Politico New York first reported Friday afternoon that Byford had submitted a letter of resignation to MTA Manager Director Ronnie Hakim, but had had second thoughts.

Hours later, the MTA, which initially refused to confirm the resignation, said the letter had been rescinded.

“I’m not going anywhere and I remain laser-focused on improving day-to-day service for millions of New Yorkers and delivering a transformed transit network,” Byford said in a statement provided to media by the MTA.

The news comes as tensions between Byford and Cuomo appear to have calmed down.

Mostly recently, Cuomo praised the British rail exec during a Sept. 20 appearance in New York City.

“Andy has the New York mojo and he has the New York aggressiveness,” Cuomo said at the time. “He’s a get-it-done guy.”

On Thursday, he gleefully guided reporters on the M15 bus to tout the MTA’s efforts to improve bus service.

But he remains disheartened with the potential of service cuts as well as the Cuomo’s frequent MTA-related media events, which he sees as a distraction, Politico said.

In his statement Friday, Byford said he and Cuomo “are on exactly the same page about the need to dramatically improve the transit system.”

But he has had good reason to be frustrated, Tri-State Transportation Campaign Executive Director Nick Sifuentes told The Post.

“He’s been stymied by legislators resistant to transit improvements, overbearing leadership in Albany and the difficulties inside the MTA itself,” Sifuentes said.

“It’d be a huge loss if he goes,” he added. “If Andy leaves, who’s ever going to want this job again?”