Buildings can be downgraded from a certain level to a lower one. The basic buildings (main, hiding place, warehouse and farm) cannot be downgraded lower than level 1. This option is available in the headquarters window/demolition tab if your headquarter is at least at level 15 and the loyalty of the village is 100.