how to delete a object in unity through script code example Example: unity remove component in script Destroy (gameObject);