A food fight between Grubhub and a New York City councilman is getting messier than ever.

The food-delivery giant’s chief executive Matt Maloney has been “needlessly aggressive and dismissive” of a city council investigation into the fees his company charges restaurants, Councilman Mark Gjonaj (D-Bronx) seethed in a letter obtained by The Post.

In addition to stiff commissions that can soar as high as 30 percent, the councilman is looking into The Post’s reporting of Grubhub and its Seamless unit charging bogus fees to restaurants for phone calls that never resulted in orders.

The back-and-forth heated up on Monday, when the Grubhub CEO blew off Gjonaj’s concerns that restaurants are struggling to stay profitable because of the fat fees charged by tech delivery apps like Seamless and Uber Eats.

“There’s always going to be individuals who are pissed off, calling up the local city councilman trying to make a bunch of trouble. That’s exactly what we are dealing with,” Maloney told Crain’s New York.

That interview — which came the same day that a New York regulator weighed new guidance that could cap delivery companies’ revenues at 10 percent — provoked a testy letter from Gjonaj, who chairs the city council’s Small Business Committee.

“Demeaning comments that categorize local restaurant owners with legitimate issues as merely ‘pissed off’ people ‘trying to make a bunch of trouble’ add very little to ensure a reasonable discourse,” according to the Tuesday letter obtained by The Post.

A spokesman for Gjonaj pointed to studies by Technomic and TDn2K showing that foot traffic has dropped at restaurants nationwide, despite Grubhub’s claims that they boost foot traffic.

In May, Grubhub reps Sami Naim and Kevin Kearns had argued at a city council meeting that delivery apps help boost traffic at restaurants. But in a Wednesday response to Gjonaj, Kearns appeared to backtrack, citing research that merely found that delivery apps don’t cannibalize customers who dine out at restaurants.

“No significant changes have been noted in restaurant visit behavior between delivery and non-delivery diners,” Kearns wrote, citing a May study by SMG, a research firm.

Katie Norris, a Grubhub spokeswoman, didn’t respond to questions about whether the company was changing its position about the benefits to restaurants — but said that it increases overall “incremental” profits for restaurants.

“Grubhub is bringing new diners, more orders, more sales and more profits for restaurants,” Norris said.