electron disable menu

JavaScript
mainWindow.setMenuBarVisibility(false) //partiallyremoveMenu: true;my_window.setMenu(false);
Source

Also in JavaScript: