foreach(Transform child in transform)
{
if(child.tag == "Weapon")
Destroy(child.gameObject);
}
If you can only possibly have one object with a matching tag that needs to be destroyed, add a “break” after the Destroy function call (obviously put braces around the conditional statement in that case, too).