Whenever a jail shall be erected for the county for whose use such designation shall have been made, or its jail shall have been rendered fit and safe for the confinement of prisoners, the circuit judge of the circuit court for such county, or in the upper peninsula, the district judge of the district court for such county, shall, by an instrument in writing, to be filed with the clerk of the county, declare that the necessity for such designation has ceased, and that the same is hereby revoked and annulled.
MCL 801.113