CL Command Reference - DLTDOCL
CL Command List > DLTDOCL Reference
Description:
The Delete Document List (DLTDOCL) command allows you to delete a document list from the system. All document lists are stored in library QUSRSYS.
Restrictions:
. To delete a document list, you must have object existence (*OBJEXIST) authority for the document list, all object (*ALLOBJ) special authority, or security administrator (*SECADM) special authority.
. To delete a document list for another user, you must have *ALLOBJ or *SECADM special authority.
Examples:
Example 1: Deleting Current User¡¯s Document Lists
DLTDOCL DOCL(*ALL) OWNER(*CURRENT)
This command deletes all document lists owned by the current user.
Example 2: Deleting All Users¡¯ Document Lists
DLTDOCL DOCL(*ALL) OWNER(*ALL)
This command deletes all document lists owned by all users.
Example 3: Deleting Document Lists Owned By a Specified User
DLTDOCL DOCL(*ALL) OWNER(ANN)
This command deletes all document lists owned by ANN.
Example 4: Deleting a Specific Document List Owned By User
DLTDOCL DOCL(AN8T475237)
This command deletes document list AN8T475237, owned by the user running this command. Displaying the user¡¯s owned objects will show the system object name for a specific document list.