How to disappear game object what I don't want to see?

I moved a game object to hierarchy section.But I want to that game object is invisible.How can I obtain it?

Do you want it invisible in the game, in the editor, or both?

Just When game run, game object has to be invisible

Disable or remove the Renderer component from the object.

I tried it but when I fire ,game object has to be visible.

Then enable the renderer when you fire?

Thanks