Any city of the first class under Kan. Stat. Ann. § 13-443, any city of the second class under Kan. Stat. Ann. § 14-423, or any city of the third class under Kan. Stat. Ann. § 15-427, or any amendments to said sections, in vacating by ordinance any street, avenue, alley or lane or part thereof may, reserve to the city and public utilities such rights-of-way and easements as in the judgment of the governing body of the city, are necessary or desirable for public service.