To hide the toolbar from the IDE, right-click on the toolbar and select Hide Toolbar from the context-menu. The following figure shows the IDE toolbar context-menu:
To display the toolbar again in the IDE, select Window > Show Toolbar from the IDE menu bar. The following figure shows the Show Toolbar menu option: