This is related to How do I hide menus without a layer file in NetBeans Platform? and How to remove items from menu in netBeans platform?. Sadly those are related to an ant built platform.
I'm trying to find out how to the same in Maven built application. I bet there's a way to add a custom layer file.
Any ideas?