MenuItem.Close
From Xojo Documentation
Method
Removes dynamically created menu items.
Example
This example closes a menu item that was previously created.
EditSelectAll.Close
Removes dynamically created menu items.
This example closes a menu item that was previously created.