Welcome to the forums @Meldosh!
You can change the visibility of any node that extends a Spatial by changing the visible property (documentation). Using node_here.visible = false should make the node invisible, which then you can add to make it disappear upon entering the tree or after a collision.