DesktopMenuItem.RemoveMenuAt
From Xojo Documentation
Method
DesktopMenuItem.RemoveMenuAt(Index as Integer)
New in 2021r3
Supported for all project types and targets.
New in 2021r3
Supported for all project types and targets.
Removes the DesktopMenuItem specified by its position (index).
Example
This example removes the Select All menu item from the Edit menu.
EditMenu.RemoveMenuAt(3)