N.Y. Criminal Procedure Law § 170.30
1. After arraignment upon an information, a simplified information, a prosecutor's information or a misdemeanor complaint, the local criminal court may, upon motion of the defendant, dismiss such instrument or any count thereof upon the ground that: