(1) When the court orders a discharge upon the defendant’s compliance with conditions of release, the clerk of the court that required a bail bond or released on personal recognizance shall make a record of the discharge and the date of discharge. (2) Upon discharge of the defendant’s and surety’s obligations under the bail bond, the court shall return all stocks and bonds and cash deposited with the court except when a 10% deposit was made. In such cases the clerk of court shall retain 10% of the 10% deposit, in no event less than five dollars. (3) If the defendant was released on a property bond, the clerk of the court requiring the bond shall notify in writing the county court clerk of each county where the real estate is situated. The lien on real estate must be discharged and the release recorded on the margin by that county court clerk.