ยง  132.  Discharge;  when  to  be granted. Upon the production, by the
  petitioner, of satisfactory evidence, that the petitioner  has  actually
  delivered  to the trustee or trustees all the property so directed to be
  assigned, which is capable of delivery; or upon the petitioner's  giving
  security,  approved  by  the court, for the future delivery thereof; the
  court must make an order, discharging the petitioner from  imprisonment,
  by  virtue  of  each  execution, specified in his petition. The sheriff,
  upon being served with a certified copy of the order, must discharge the
  petitioner as directed therein, without  any  detention  on  account  of
  fees.
Structure New York Laws
Article 5 - Judgment Debtor's Discharge From Imprisonment
121 - To What Court Application to Be Made.
122 - When Petition May Be Presented.
123 - Contents of Petition; Schedule.
124 - Affidavit of Petitioner.
126 - Notice to Creditors; When Service Cannot Be Made.
127 - Notice to Creditors; When State a Creditor.
128 - Proceedings on Presentation of Petition.
130 - Proceedings on Adjourned Day.
131 - Assignment; Effect Thereof.
132 - Discharge; When to Be Granted.
133 - Petitioner's Property Still Liable.
134 - When Creditor May Issue New Execution Against Person.
135 - Powers and Duties of Trustee.
136 - Creditor May Notify Debtor to Apply for Discharge.
137 - Effect of Failure So to Apply.
138 - Debtors to State or United States Not to Be Discharged.