Whenever any person shall be committed to a correctional institution, or shall be under recognizance, to answer to a charge of assault or battery, or both, or for any threat of committing an offense against the person or property of another, if the person injured or threatened shall appear before the judge of the district court who issued the warrant of commitment or took the recognizance, and acknowledge in writing that he or she has received satisfaction of the injury, or has ceased to fear the execution of the threat, the judge may, in his or her discretion, upon payment of all costs that may have accrued, including the board of the prisoner in the institution, if committed, discharge the recognizance, or supersede the commitment, by an order under his or her hand, which order shall be filed with the recognizance, or recorded in the records of the institution, as the case may require. That order shall forever bar all remedy by civil action for the injury.
R.I. Gen. Laws § 12-10-8