That breaks the building. If you want to destroy the whole thing, conventional weapons has that covered. Drones can't get through nets and doors. Though, have you considered packs of robot dogs with machine guns and one arm/hand? Cheaper than a fully bipedal humanoid robot.

> have you considered packs of robot dogs with machine guns

I don't have it to hand but already a few years ago a defense contractor had attached quite a heavy rifle on some sort of articulable mount to the top of something that looked exactly like Boston Dynamic's Spot. I'm not sure how much ammo it was capable of carrying or what it's range was but it's definitely a concerning development. I think I might become an enthusiastic custom anti-materiel rifle collector in the near future.

I'll carry an ammo belt of little EMP devices.

A microwave weapon could be effective. And reusable.

The Marines did it with a rocket launcher. https://www.twz.com/marines-test-fire-robot-dog-armed-with-r...

One thing exists and is known to work and be cheap. The other it's you musing about what will be possible. So they need to be judged differently. No land robot can move through a war environment in any effective way at the moment and also "open doors" etc. They are too slow. Not drones.