scmJS docs

Remove Unit

Removes every unit of the type the player owns, anywhere on the map, without a death animation.

Action 24 · Remove Unit(Player, Unit);

Argument Takes Stored in the action
Player a player or group bytes 16–19
Unit a unit type, or one of the unit classes bytes 24–25
Remove Unit("Player 12", "Map Revealer");