Code:
monitor_event SettlementExterminated SettlementName x
console_command set_building_health x building_complex 0
end_monitor
Something like that should damage buildings when a settlement named X is exterminated.