Whenever a bond is foreclosed pursuant to this chapter, the decree of foreclosure shall direct the clerk of the court to deliver the bond sued upon to the treasurer of the city which issued said bond together with a memorandum setting forth the title and number of the action and the fact that the bond has been foreclosed.