I'm not too sure if this is what you are asking, however, you should be able to just click the "x" in the corner of the tab and it should go away.
You can also look at this past StackOverflow post here that should help you: how to remove visual studio PIN TAB icon (on tabs, obviously)