Using the Delete User Profile command
To delete a user profile, you can enter the Delete User Profile (DLTUSRPRF) command directly, or you can use option 4 (Delete) from the Work with User Profiles display.
The DLTUSRPRF command has parameters allowing you to handle:
- All objects owned by the profile
- All objects for which the profile is the primary group
- EIM associations
Delete User Profile (DLTUSRPRF)
Type choices, press Enter.
User profile . . . . . . . . . . > HOGANR Name
Owned object option:
Owned object value . . . . . . *CHGOWN *NODLT, *DLT, *CHGOWN
User profile name if *CHGOWN WILLISR Name
Primary group option:
Primary group value . . . . . *NOCHG *NOCHG, *PGP
New primary group . . . . . .
New primary group authority .
EIM association . . . . . . . . *DLT *DLT, *NODLT
You can delete all the owned objects or transfer them to a new owner. If you want to handle owned objects individually, you can use the Work with Objects by Owner (WRKOBJOWN) command. You can change the primary group for all objects for which the group profile is the primary group. If you want to handle objects individually, you can use the Work with Objects by Primary Group (WRKOBJPGP) command. The displays for both commands are similar:
Work with Objects by Owner
User profile . . . . . . . : HOGANR
Type options, press Enter.
2=Edit authority 4=Delete 5=Display author
8=Display description 9=Change owner
ASP
Opt Object Library Type Attribute Device
4 HOGANR QUSRSYS *MSGQ *SYSBAS
9 QUERY1 DPTWH *PGM *SYSBAS
9 QUERY2 DPTWH *PGM *SYSBAS