Whenever any building or structure is partially burned, the owner or person in control shall, within 30 days after completion of the scene investigation by the fire department or insurer of the property, remove from the premises all refuse debris and all charred and partially burned lumber and material. If such building or structure shall be burned to such extent that it is rendered incapable of being repaired, the owner or person in control shall within 60 days after completion of the scene investigation by the fire department or insurer of the property, remove from the premises all the remaining portion of the building or structure. If the building or structure is to be repaired, a permit shall be obtained and work shall begin within 60 days after completion of the scene investigation by the by the fire department or insurer of the property and shall be completed within 180 days from the date a permit is obtained.