The WANTON part is the hardest part to justify, so if your soldiers are being engaged by enemies in the town or building it isnt a war crim to level it. Leveling a building or urban are that is part of a battle is valid.
As we need to move on from it, lets just wait till "War Crimes" are filed and we shall see if it comes up as part of the "crimes"
You keep saying that, yes but it's not that simple. It's even harder to justify indiscriminate attacks. The Geneva Convention literaly states it was prohibited to just attack populated areas, even if there was enemy military presence in them. So you are legaly already in trouble for that.
4. Indiscriminate attacks are prohibited. Indiscriminate attacks are:
(a) those which are not directed at a specific military objective;
(b) those which employ a method or means of combat which cannot be directed at a specific military objective; or
(c) those which employ a method or means of combat the effects of which cannot be limited as required by this Protocol; and consequently, in each such case, are of a nature to strike military objectives and civilians or civilian objects without distinction.
5. Among others, the following types of attacks are to be considered as indiscriminate:
(a) an attack by bombardment by any methods or means which treats as a single military objective a number of clearly separated and distinct military objectives located in a city, town, village or other area containing a similar concentration of civilians or civilian objects; and
(b) an attack which may be expected to cause incidental loss of civilian life, injury to civilians, damage to civilian objects, or a combination thereof, which would be excessive in relation to the concrete and direct military advantage anticipated.
.
The attacker has to prove that their action was justified and not indiscriminate. When evidence suggested the contrary, they are war crimes. If you attack or level a building that contained combatants as well as civilians, it can be charged as war crime. Just claiming a whole town was hostile is not a justification. Even then, if there was enemy presence evident in town, that is not enough. Because you need to to be able to justify
every single military action you carry out against
every single non-military, populated-or non populated civilian, cultural object and make sure, civilian property was not endangered unjustifiably and that civilians were not present and harmed in the process. So, just
claiming there were hostiles in the general area and leveling buildings indiscriminately, doesn't work. If you bombard an area, kill civilians in the process or just endager them and destroy their property without any trace or at least videographic evidence that there was
only enemy presence at the time and there are also withnesses to denie that, than you absolutely can be charged with war crimes. If the building was empty, you can't prove hostile presence, and you just leveld it, it can also be charged as war crime. I tell you, it's not all that easy for the perpetrator either.
IF it was the case that the structure in question was sheltering only combatants and you can actualy prove it, then yes, it wouldn't constitute a war crime and it would be very difficult to accuse anyone of at least wanton destruction. Sure. We can agree on that.