New York is saying “fugheddaboutit” to “Sopranos” star Drea de Matteo’s suit over last year’s deadly East Village gas explosion.

The city is claiming immunity from the $17 million lawsuit, which she and 35 of her neighbors filed in Manhattan Supreme Court after their homes were destroyed in the March 2015 blast that killed two people.

“Whatever damages and/or injuries plaintiffs may have sustained were caused in whole or in part by [others’] culpable conduct,” the city lawyers said in its response. “The city claims privilege and immunity from liability herein.”

De Matteo, best known for her role as Adriana La Cerva on the hit HBO mob series, had lived for 22 years with her family at 123 Second Ave., one of three buildings destroyed.

“A hole where my NYC home of 22 years once stood,” she wrote on Instagram shortly after the tragedy, along with a photo of the smoldering blast site.

“RIP 123 2nd Avenue.”

She and other had tenants alleged in court papers in June that the city failed to “properly test the gas lines” and was neglectful in relying on “an illogical and antiquated system of enforcement, inspections, and reliable self-certification.”

Their suit is one of dozens stemming from the tragedy.

In denying any fault, the city said the damages were caused by Con Edison, the building’s managers, and the five people busted for the illegal gas hookup blamed for the blast.

Scott Agulnick and Mark Friedman, the lawyers representing de Matteo and the other tenants, fired back at the denial.

“We believe that the city’s failures were not of the nature of misjudgment in discretionary acts but rather a fundamental failure to carry out ministerial acts and essential functions,” they said.

A Con Ed spokesman said, “We will address the matter in court.”

De Matteo could not be reached for comment.