After the Trump campaign threatened to sue a Minneapolis arena for passing along a half-million-dollar security bill from the city to cover costs of the president’s political rally there later this week, the venue withdrew the request, according to Trump’s campaign manager.

Minneapolis officials told the Target Center, where Trump is slated to appear Thursday night, that it would be responsible for the $530,000 the city says it will need to beef up security for President Trump’s visit. The Target Center planned to pass that bill along to the Trump campaign and said the campaign would have to pay or it could not use the arena.

But after a day of angry tweets from the president, mostly directly at the Democratic Minneapolis mayor, the Trump campaign announced Tuesday evening that the arena will not be canceling the contract and the campaign will not be paying any additional fees.

“The arena in Minneapolis has been fully approved,” campaign manager Brad Parscale wrote in an email to supporters. “The Target Center has backed off cancelling the contract, which means President Trump’s Keep America Great rally will go on as scheduled. Consistent with our original agreement with the venue, the Trump campaign has not agreed to pay any additional funds.”

It was not immediately clear whether the Target Center or the city will absorb the costs.

The battle over the security fees infuriated the Trump team, which accused Mayor Jacob Frey (D) of trying to block Trump’s visit.

Trump slammed Frey in a series of tweets throughout the day Tuesday, calling him a “lightweight.” Parscale accused Frey of “abusing his power.”

Frey, reached by phone Tuesday night, said that his effort to recoup public safety costs is not political and that his position remains the same — that he wants the city reimbursed.

“What I’m doing is watching out for our taxpayers, something our president should be doing, too,” Frey said. “It’s not extortion to ask someone to pay their bills, even when that person really hates paying their bills.”

The Trump campaign’s legal team sent the Target Center’s parent company, AEG Management, a letter Monday declaring that refusing to allow Trump to hold his event there would be a breach of contract. The letter said the Trump campaign “will aggressively pursue all remedies available to it in law or equity.”

In a statement accompanying the public release of the letter, Parscale accused Frey of extortion by “conjuring a phony and outlandish bill for security in an effort to block a scheduled Keep America Great rally.”

“The radical Mayor of Minneapolis, @Jacob_Frey, is abusing his power in an attempt to block the President’s supporters from seeing him speak on Thursday,” Parscale tweeted Tuesday morning with a map of Minnesota showing the counties Trump won in 2016. “We refuse to be bullied by a left-winger resister & won’t let him stifle the speech of @realDonaldTrump or his supporters!”

Trump retweeted his campaign manager and wrote: “The lightweight mayor is hurting the great police and other wonderful supporters. 72,000 ticket requests already. Dump Frey and Omar! Make America Great Again!” Trump’s rally is to be held in the congressional district of Democratic Rep. Ilhan Omar.

Frey, who has been an outspoken critic of Trump, responded to the president’s tweet shortly thereafter.

“Yawn . . . Welcome to Minneapolis where we pay our bills, we govern with integrity, and we love all of our neighbors,” Frey tweeted.

After Trump announced his intent to visit the city, Frey said in a statement that while there was “no legal mechanism to prevent the president from visiting, his message of hatred will never be welcome in Minneapolis.”

A spokesman for the city, Casper Hill, said in an email that the public safety cost of Trump’s visit is estimated to be around $400,000 and that another $130,000 will probably be needed for lane closures, traffic control and other such disruptions.

“For context, the City’s public safety and other essential services costs during the Super Bowl in 2018 was roughly $6 million and $1.5 million for the Final Four earlier this year,” Hill said. “The City has used the same methodology to determine public safety, traffic control and other costs for the political rally at Target Center.”

Trump’s campaign committee has not paid at least 10 cities for the public safety costs of hosting the president, according to the Center for Public Integrity.

Nearly three hours after Trump first tweeted on the subject, he went after the Minneapolis mayor again. He typed out another tweet attacking the mayor several hours after that.

The president is also irked by a rule change ahead of his visit banning law enforcement officers from wearing their uniforms to political events. Instead, Trump-supporting police officers are planning to wear bright red shirts that say: “Cops for Trump.”

“Someone please tell the Radical Left Mayor of Minneapolis that he can’t price out Free Speech. Probably illegal!” Trump tweeted. “I stand strongly & proudly with the great Police Officers and Law Enforcement of Minneapolis and the Great State of Minnesota! See you Thursday Night!”

“It’s certainly an interesting way to wake up in the morning,” Frey said, of being on the receiving end of Trump’s tweets. “It’s just surprising that the president of the United States takes so much time to spout that kind of garbage online. It’s not what I spend my time doing.”