Plugins window, remove all items for menu Window not working

If I use

plugins.window.getMenuBar().getMenu(2).removeAllItems(); // Remove all Window menu items

for the Window application menu, it doesn’t remove the main window, i. e. the one set in Properties > firstForm for the application. So the result is as seen in the attached screenshot. How can I remove this entry?
removeAllItems does remove all items for all other menus (but not for the Window menu as mentioned above).

Any idea what causes this and how to remove really all menu items?

Regards,

Why do you want an empty menu? Why not simply remove the whole menu?

btw: no screenshot was attached.

Thanks, I attached the screenshot. I’d like to add my own menus to the Window menu, but previously I would like to remove all existing items, which are a bunch of forms, and a More… menu to show the rest of the forms.

I just realized the above mentioned is only valid if one starts the SmartClient from within Servoy Developer, if started from the Servoy Application Server the behavior is ok, no More… menu appears :-)

Regards,

patrick:
Why do you want an empty menu? Why not simply remove the whole menu?

btw: no screenshot was attached.