Hundreds of low-level marijuana convictions are going up in smoke.

Brooklyn District Attorney Eric Gonzalez announced Wednesday that he’s following through on plans to wipe out more than 1,400 warrants in misdemeanor weed possession cases, as well as over two dozen past convictions.

“The majority of these warrants were issued to black and Latino New Yorkers, and many are remnants of stop-and-frisk policies that harmed many of our communities and that the city has since abandoned,” Gonzalez said in court.

“I believe we must do what we can to repair the harms done to the individuals and the communities that were targeted in well-meaning, but misguided efforts of the past.”

The warrants, which will be wiped within 90 days, were issued to people who skipped court on low-level possession cases that the DA’s office no longer prosecutes, they said.

The Brooklyn and Manhattan DAs have stopped prosecuting the majority of pot possession and smoking cases — and Gov. Andrew Cuomo said this week it’s time to legalize marijuana “once and for all.”

“I strongly believe that clearing these misdemeanor warrants is what justice requires in these cases and corresponds with my mission of keeping Brooklyn safe and strengthening trust in the criminal justice system by ensuring fairness and equal justice for all,” Gonzalez said.

Over the past three months, Brooklynites were able to meet with The Legal Aid Society and Brooklyn Defender Services at events to file the motions to erase their convictions, the Brooklyn DA’s office said.

The 28 convictions, which were expunged Wednesday, mark the first time in New York state history that multiple convictions for pot possession were erased by a DA.

The plan is tied to the DA’s “Begin Again” initiative, which was announced in September.

There are an estimated 20,000 people in Brooklyn who may be eligible to get their convictions erased, the DA’s office said.