Yes, when collapse is imminent and threatens the general public, as determined by the authority having jurisdiction with a licensed engineer, architect or other authorized individual. If fencing off the area removes the threat more cheaply, demolition is ineligible.
The items listed above for each structure, plus insurance recovery efforts with the owner.
Have the qualified individual’s written finding of imminent collapse for every structure before demolition starts.