There’s a difference between occupation (where this wins) and deterrence (where they can’t attack your country). The latter was the primary objective.
Wasn't it "regime change"? Anyhow, how was Iran attacking "your country" (assuming you're talking about the US and not its proxies / clients).
How many countries was Iran attacking, or could attack, when they still had their "military" intact (in, say, December 2025)?