Remove object from level when building game

I have a game object in my level that needs to be there only when in editor. When I actually build this game, I need the object to be removed. By removed I mean REMOVED. Not just destroyed at runtime.
Thanks

Sorry I’m not sure if that is possible. What you could do is to draw the object as a gizmo only in the editor.

You should look into the Editor class and construct from what is available there, then you could use:

if(Application.isEditor)