You can remove some of the default menu items that don't make any sense for your app by replacing that group of commands with nothing at all, for example
CommandGroup(replacing: .textEditing) { }
however, if I remove all the text formatting commands,
CommandGroup(replacing: .textFormatting) { }
I still have a Format menu in the menu bar, but the menu has no content. I don't know how (in SwiftUI) you can entirely remove framework-provided menu items.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: