All buildings or structures which are unsafe, unsanitary, or not provided with adequate egress, or which constitute a fire hazard, or are otherwise dangerous to human life, or which in relation to existing use constitute a hazard to safety or health by reason of inadequate maintenance, dilapidation, obsolescence or abandonment, are unsafe buildings. All such buildings may be declared illegal and shall be abated by repair and rehabilitation or by demolition in accordance with the provisions of the standard unsafe building abatement codes.