So, in this world, nanites can be best described as COVID-19 on steroids, though they can do other stuff, like disable bio-weapons and enhance crop yield. Some nanomachines can be designed to be as durable as tardigrades or even better/worse.
Micromachines are closer to what you'd expect. They're able to mimic objects to varying degrees (obviously, they shouldn't be subjected to extreme forces (unless they're in an adequate form configuration), open-flame pretty much insta-kills them.
Hybrid swarms (swarms of nano and micromachines) are fairly sophisticated and extremely dangerous. While they probably won't be like a classical grey-goo scenario, nanomachines are able to turn animals into zombies that don't wear face masks and cough on everyone until they die of 24/7 producing nano and micromachines.
Now, one of the most important points in my setting's history is when thanks to humans, a greater nature god falls into despair and becomes a hybrid swarm, several cubic kilometers in volume (it's a bit complicated, but that's all you need to know right now).
The only way to purge was to use a multi-phase weapon of mass destruction, known as The Sparagmos, which pretty much razed everything to the ground.
Phase one: Designating the Area of Operation.
During phase one vehicles, carrying The Sparagmos, move into a position where each individual forms a point of the AO.
Phase two: Sparagmos dispersal and activation
Using the micromachines of the swarm, The Sparagmos disperses into the AO, using the vehicles as a reference point and is then activated.
Phase three: 100% activation
Sparagmos vehicles have heavy-duty generators on them. These are to be activated in phase three, where the vehicles start powering the Sparagmos micromachines and nanomachines through wireless energy narrowcast and induction.
At this stage, Sparagmos nanomachines become active. Forming long chains, they begin to destroy any non-sparagmos matter with various enzymes and acids. The micromachines expel oxidized/reduced matter towards the outer rim of the AO.
Phase 4: Kerblam!
Once all matter in the AO has been "consumed" by The Sparagmos, the swarms forms into a web of thin strands. A high-power flux-compression bomb is then detonated over the AO, disintegrating The Sparagmos.
So, the question is if The Sparagmos would be an effective (no trace of rogue nanomachines left) way to deal with nanomachines? If yes, why would it be more effective than carpet-bombing the AO with napalm or just simply nuking it, assuming geopolitics isn't a player here?