N.Y. Criminal Procedure Law § 440.30
1.
(b) In conjunction with the filing or consideration of a motion to vacate a judgment pursuant to section 440.10 of this article by a defendant convicted after a trial, in cases where the court has ordered an evidentiary hearing upon such motion, the court may order that the people produce or make available for inspection property in its possession, custody, or control that was secured in connection with the investigation or prosecution of the defendant upon credible allegations by the defendant and a finding by the court that such property, if obtained, would be probative to the determination of defendant's actual innocence, and that the request is reasonable. The court shall deny or limit such a request upon a finding that such a request, if granted, would threaten the integrity or chain of custody of property or the integrity of the processes or functions of a laboratory conducting DNA testing, pose a risk of harm, intimidation, embarrassment, reprisal, or other substantially negative consequences to any person, undermine the proper functions of law enforcement including the confidentiality of informants, or on the basis of any other factor identified by the court in the interests of justice or public safety. The court shall further ensure that any property produced pursuant to this paragraph is subject to a protective order, where appropriate. The court shall deny any request made pursuant to this paragraph where:
(i)
1-a.
(a)
3. Upon considering the merits of the motion, the court must grant it without conducting a hearing and vacate the judgment or set aside the sentence, as the case may be, if:
4. Upon considering the merits of the motion, the court may deny it without conducting a hearing if: