This knowledge base explains the way to hide and show the “File” menu in ribbon of the Spreadsheet. It can be achieved by using “hideMenu()” and “showMenu()” methods.
The following screenshot displays the Spreadsheet without the file menu.
You can refer the below UG Documentation,
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|