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,
This page will automatically be redirected to the sign-in page in 10 seconds.