If the obligation of the surety on the bond is released in writing by the court and a discharge is provided to the surety or the surety's agent, the collateral security or other indemnity, except a promissory note or an indemnity agreement, shall be returned, within twenty-one days after the discharge is provided, to the person that gave the collateral security or other indemnity, unless another disposition is provided for by legal assignment of the right to receive the collateral to another person. If, despite diligent inquiry by the surety or the surety's agent to determine that the bond has been discharged, the court fails to provide a written discharge within thirty days after the written request was made to the court, the bond shall be considered canceled by operation of law, and the collateral security or other indemnity, except a promissory note or an indemnity agreement, shall be returned, within twenty-one days after the written request for discharge was made to the court, to the person that gave the collateral security or other indemnity.
R.C. §3905.921