Create a new variable of type "Unit Group", which will hold all of the spawned adds.
Then, whenever you spawn an add, use the "Unit Group -> Add Unit To Unit Group" trigger with "Last Created Unit" as the unit to add them to the unit group variable.
When you want to kill them, do a "For Each Unit In Unit Group" (or Pick Each if you prefer) and kill them one by one. AFTER the loop, make sure you clear out the variable. Leaving it uncleared may not cause any issues, but better safe than sorry. =)
@ThePontifex: Go
Create a new variable of type "Unit Group", which will hold all of the spawned adds.
Then, whenever you spawn an add, use the "Unit Group -> Add Unit To Unit Group" trigger with "Last Created Unit" as the unit to add them to the unit group variable.
When you want to kill them, do a "For Each Unit In Unit Group" (or Pick Each if you prefer) and kill them one by one. AFTER the loop, make sure you clear out the variable. Leaving it uncleared may not cause any issues, but better safe than sorry. =)