Too bad for him there’s no “undo” button in life.

Microsoft founder Bill Gates says he regrets ever meeting with pedophile Jeffrey Epstein now that he’s accused of donating $2 million to the embattled MIT Media Lab at the convicted pedophile’s request.

“I wish hadn’t met with him,” Gates told Axios on Tuesday.

“I won’t say I knew him that well, because he was introduced to me as somebody who could bring more people into philanthropy,” he said, denying ever having a “business or personal relationship” with Epstein.

“There were meetings along [philanthropic] lines. That didn’t materialize, and so then I stopped meeting with him,” he continued.

The Microsoft billionaire doled out the dough to the lab in 2014 — years after Epstein had been convicted of soliciting an underage prostitute in 2008.

Through a rep, Gates has denied he gave the money under Epstein’s direction — despite emails obtained by the New Yorker showing then-Media Lab director Joi Ito explicitly stating the money was “from Bill Gates directed by Jeffrey Epstein.”