In removing pavement, etc., the material dug up must be deposited in such manner as to guard against inconveniences to the public, by obstructing streets, alleys or sidewalks, nor shall the hole in any street be left open or unguarded during the night time.