So all the allied bombings in ww2 were pointless?
More bombs were dropped in Vietnam. Pointless was your word but to address the GP, how effective was that militarily? Stationed artillery is not an occupation.
Now, if someone wants to digress into Vietnam…
They could destroy enemy factories and infrastucture, though unguided dumb munitions were so innacurate that you needed 500+ to destroy one building (IIRC). Modern precision guided munitions work much better, but the Russians apparently are using dumb ones, at least sometimes. But both the Nazis and possibly the Allies thought that they could break the enemy's will to fight by bombing civilians - throughout history, protected from the ravages of war until the armies reached them - into submission. That doesn't work - bombing London didn't drive Britain toward surrender, and bombing Dresden didn't cause Germany to surrender. Bombing/shelling Ukraine won't do much more, unless they just try to kill everyone in the city (unlikely, even for Putin).
IIRC Air force leaders in WWII claimed that they could defeat the enemy through air power pretty much alone, and that land forces were becoming obsolete. It didn't work but they've claimed that ever since - including even for the Afghanistan invasion in 2001.
As we have seen, all the airpower in the world wouldn't stop the Taliban. Bombers are especially ineffective against insurgencies: The insurgents don't present targets, especially ones that linger in the open like a tank division or a weapons factory. And even if you could target a few insurgents, that is a very expensive use of a bomber, its fuel, bombs, etc.
And when you account for all of those bombs, and the bombers that carried them, and the fighter escorts for those bombers, and the ammunition for the fighters and turret gunners, and the aircraft losses to enemy fire, and the loss of manpower in air crews, and all of the logistics to maintain these bombing campaigns, you are paying very heavy costs for the damage you’re ultimately inflicting.
Not all. Many of those had the explicit goal of at machine factories and industrial centers (sometimes the whole town) for airplanes, ball bearings, etc, (at least in 1943/1944) although there were carpet bombings and there were a fair share of generals in favor of the “indiscriminate” aspect