Remove title bar options on macOS

How can I remove the options from the title bar on macOS? I tried to search for some answers but it seems to either be for Windows OS only or the solutions don’t work.

I want to hide everything like File, Edit, Window etc…

Is this even possible? I used the Electron Demo to create my app.

When running a development Electron app and not setting a menu, it’ll use the default menu you’re seeing. This isn’t the case in a production app, where there isn’t a default. If you want to force it to not show anything in development, you can use Menu.setApplicationMenu(null).