Rudy Giuliani said Friday that he’s canceled his trip to Ukraine, where he had planned to urge the president-elect to continue the country’s probes into two matters that could benefit President Trump’s reelection campaign.

Giuliani announced the reversal during an interview on Fox News, saying he didn’t want to give the impression of meddling in the 2020 election — but calling that suggestion a “set up.”

“I believe I was walking into a bunch of people, one of whom was already found to be involved on this, and I think this was a set up. The whole thing, by the way, is a set up,” Giuliani said.

“I will get out of it in order to remove any political suggestion I will step back and I’ll just watch it unfold,” he added.

The former mayor had told The New York Times that he planned to encourage a Ukrainian probe into Hunter Biden, the son of 2020 Democratic presidential candidate former Vice President Joe Biden.

That probe centers on business payments made to Hunter by a Ukrainian oligarch, and whether the former vice president was involved in removing a prosecutor whose office was in charge of a resulting investigation.

He said he also planned to urge the continuation of another probe into whether Ukrainian officials tried to benefit Hillary Clinton’s 2016 campaign by targeting Paul Manafort’s business dealings in the country.

“We’re not meddling in an election, we’re meddling in an investigation, which we have a right to do,” Giuliani had told The New York Times about the trip. “There’s nothing illegal about it.”