Destroying object on the scene but not on the hierarchy

Hi everyone is it possible to destroy an object on the scene but not on the hierarchy? If there is then, how can I do it ? Or someone give me an Idea on how can I do it? Any answer will be appreciated, thanks :slight_smile:

If when you say “destroy” you mean “make it disapear”, this is your answer:

gameObject.SetActive (false);

If what you mean is “I dont want to lose all the customization of that object”, you can create a prefab (drag the object on the hierarchy and drop it on the project tab), and then make a new instance when you need to create a new object with the same attributes.