How to remove the (Clone) from instantiated prefab C#

I’ve tried to remove the the (Clone) by renaming the instantiated prefab but it stays! eg: Fighter0**(Clone)**

How can I remove it?

Thanks!

 public void Spawner()
 {
 ClassPick = 0; //(int)Random.Range(0,2.999f);
 
 Debug.Log("Setting Class");

 switch(ClassPick)
 {
 case 0 :
 enemy = Resources.Load("Fighter")  as GameObject;
 Instantiate(enemy, new Vector3(0,0,10),Quaternion.identity);
 enemy.name = "Fighter" + prefabIndex;
 ecounter++;
 
 break;
 }

}

Use

`
GameObject go = Instantiate(enemy, new Vector3(0,0,10),Quaternion.identity) as GameObject;

go.name = go.name.Replace(“(Clone)”, “”);
`

Your Gameobject’s name is not changing. It is the system telling itself in the inspector that the original object is not a clone so you don’t accidentally erase it. If you apply your code to a specific parent name or game tag, the script shall work on clones, too.