16-232. Excavations; regulation.
A city of the first class by ordinance may prevent the digging of holes, pits, or excavations within the city, except for the purpose of building where such excavations are made, prevent the leaving of any holes, pits, or excavations within such city in an exposed condition, and require the filling of same.
Source