Remove Multiple sub-menus

I’m modifying the BattleTech AlphaStrike module. The original creator put a bunch of sub-menus on all the unit pieces. I need to change this by moving the menu to a global location. But, I don’t want to have to open every unit piece and remove the nested sub-menus. I’m wondering if there is a way I can do a mass removal. I doubt I can as the sub-menus have different IDs. But I figured I’d check.

I searched the forums for my issue, but couldn’t find anything.