Command reference / sys
DLTMNU
Delete Menu
Deletes menus, and optionally the display file and message file of a display file menu or the program of a program menu.
Allowed environments: *ALL.
Positional parameters: 1.
Restrictions
- Requires *OBJEXIST and *OBJOPR authority to the menu and *EXECUTE authority to its library.
Parameters
MENU
Menu
The menu to delete: a specific or generic name, qualified by a library. This parameter is required.
*LIBL- Searches every library in the thread's library list until the first match is found.
*CURLIB- The job's current library. If no current library is in the library list, QGPL is used.
*USRLIBL- If a current library entry exists, searches the current library and the user portion of the library list. Otherwise searches only the user portion.
*ALL- Searches all libraries in the system, including QSYS.
*ALLUSR- Searches all user libraries: those whose names do not begin with Q, except certain IBM development libraries such as #COBLIB and #RPGLIB, plus several Q-prefixed libraries that hold frequently changing user data, such as QGPL and QUSRSYS.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Menu
Menu
Library
Library
Suggested / special values:
*LIBL, *CURLIB, *USRLIBL, *ALL, *ALLUSR
DLTREFOBJ
Delete referenced objects
The objects the menu refers to that are deleted with it. They are found with their own library qualifiers; the menu's current and product libraries are not used.
Allowed values:
*DSPF, *MSGF, *PGM, *NONE, *ALL
*NONE- No referenced object is deleted.
*ALL- Every referenced object is deleted.
*DSPF- The display file.
*MSGF- The message file.
*PGM- The program.
Examples
DLTMNU MENU(EXLIB/TEST) DLTREFOBJ(*DSPF *MSGF)
Deletes menu TEST in EXLIB with its display file and message file.
Generated from os/cl/catalog/DLTMNU.json and os/cl/help/DLTMNU.json.