The family of a Bronx teen shot and killed by a police officer has won a legal victory against the NYPD.

A State Supreme Court judge has ruled the department must release documents related to the death of Ramarley Graham.

His family will receive some for private use, while other files can only be reviewed with a judge present.

The NYPD had cited an obscure state law as a means to keep files on Graham's 2012 shooting private.

Richard Haste, the officer who shot the 18-year-old inside his home, resigned earlier this year after an NYPD trial found him guilty on all counts.

The city's legal team says it will review the State Supreme Court's most recent decision.

Following the ruling, Graham's mother released a statement, saying in part, "It is our hope that the city will not continue dragging out our ability to receive answers any longer than the six years it already has delayed."