When the refunding bonds have been exchanged for the outstanding bonds, the outstanding bonds, except as to any sum payable from assessments which property owners have by written notice elected to pay, shall be canceled by the city treasurer and shall be filed in the office of the treasurer.