The city council may, by ordinance, condemn any sidewalk which they may deem to be in a dangerous or defective condition or out of repair, or any sidewalk which is not located upon the established grade and line for sidewalks (on the street on which it is located, as provided by the ordinances of said city), or any sidewalk which does not conform to the specifications and requirements for sidewalks in said city, as provided by the ordinances of said city, and to provide for the removal of any sidewalk so condemned.