how to remove a single component from every gameobject in unity code example
Example 1: unity remove component in script
Destroy (gameObject);
Example 2: unity remove component
//Use Destroy() for removing components
Destroy (gameObject);
//Use Destroy() for removing components