Upon reversing or modifying a judgment and directing corrective action, an appellate court must remit the case to the criminal court in which the judgment was entered. Such criminal court must execute the direction of the appellate court and must, depending upon the nature of such direction, either discharge the defendant from custody, exonerate his bail or issue a securing order.
N.Y. Crim. Proc. Law § 470.45