Destroy all objects with tag "enemy"?

How do I destroy all objects with the tag “enemy” all at once?

CONVERTED TO C#
GameObject gameObjects;

void DestroyAllObjects()
{
	 gameObjects = GameObject.FindGameObjectsWithTag ("yourTag");
	
	for(var i = 0 ; i < gameObjects.Length ; i ++)
	{
		Destroy(gameObjects*);*
  •   }*
    
  • }*

Just get an array of objects with the tag you want and destroy them one by one

var gameObjects : GameObject[];

function SomeFunction(){

    gameObjects =  GameObject.FindGameObjectsWithTag ("yourTag");

    for(var i = 0 ; i < gameObjects.length ; i ++)
        Destroy(gameObjects*);*

}
I Hope this works!