# Deleting Menus
> [HTML Version](deletingmenus.htm)
When deleting a built-in menu, you can now set the _menuid_ parameter to "" and put either the string representation of the internal menu id # in the _mnutxt_ parameter, or the numeric value in the _itemid_ parameter (in which case set _mnutxt_=""). The latter method apparently seems more natural to some users, whose efforts were previously failing.
AG\_MENU supports simplified deletion of menu items using either of the following formats:
TAB(-10,AG\_MENU);"3,,";str(IDM\_PRINTS);chr(127);
TAB(-10,AG\_MENU);"3,";MENUID\$;",";MNUTXT\$;chr(127);
The first example works for internal (built-in) menu items, where you must specify the str() of the IDM\_xxx value for the menu (from [ashell.def](ashell_def.htm.md)).
The second example works for custom menu items, where you specify the text of the parent menu and the text of the item to delete.
These formats are mainly useful with [AGCMd,lit](agcmd_lit.htm.md), since they don't apply to AUI\_MENU. They are faster than any other method for deleting individual items one at a time, since there is no return status.