You don't need fan-made guides for this; all the IDs are in the official document (IDs_for_scripts.pdf, I think).
Place a trigger on capturing (OBJECT_CAPTURE_TRIGGER) and call RazeTown. The only caveat is that it's better to have a garrison in the town; otherwise, the town screen will open first, and then it will be destroyed when you exit.
And can all towns be destroyed? I thought only human and demon towns could be destroyed; their destroyed towns are even listed in the "Towns" tab :confused:.
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"
Кампания для "Кодекса Войны"
"Выбор Сагиттеля"