Destroy all Objects of a Type in Game

Hi,
i want to destroy all Prefabs of a certain type ingame,

“JumpGemPrefab” is the name of the prefab, “JumpGemPrefab(Clone)” is the name ingame,
and “JumpGem” is the name of the attached script.

enter code here
GameObject other = GameObject.Find("JumpGemPrefab(Clone)");
Destroy(other);

works but destroys only one of the Prefabs.

enter code here
GameObject[] others = (GameObject[])FindObjectsOfTypeAll(typeof(JumpGem));
foreach (GameObject other in others)
{ Destroy(other); }

has no effect.

Greetings Marcurion

Thanks guys, Dakwamine’s script with other.gameObject works perfectly.

Greetings Marcurion