Uninstalling IBM MQ and data on IBM i
We can delete IBM MQ entirely, including all user data.
Important: If we are going to delete IBM MQ entirely, including all user data, save your user data first. It cannot be recovered.To delete IBM MQ for IBM i entirely, complete the following steps:
Procedure
- Quiesce IBM MQ for IBM i. For more information, see Quiescing IBM MQ for IBM i .
- Delete each queue manager in turn by using the command WRKMQM and selecting option 4.
- End the IBM MQ subsystem, by issuing the command:
ENDSBS SBS(QMQM)- Ensure that no locks are held on the library QMQM, by issuing the command:
WRKOBJLCK OBJ(QMQM) OBJTYPE(*LIB)- Optional: To also uninstall IBM MQ Java, we can do it now, using the command:
DLTLICPGM LICPGM( 5724L26 ) OPTION(*ALL)This will also uninstall the Java Samples, if they were installed.- Use the Delete Licensed Program (DLTLICPGM) command to delete the base product (and also the samples if you chose to install them). To delete the base product and the samples issue the command:
DLTLICPGM LICPGM( 5724H72 ) OPTION(*ALL)- Delete the directory /QIBM/UserData/mqm and its subdirectories. Do this using the EDTF command and selecting option 9 (recursive delete) for the mqm directory, as follows,
- Note: If you do this, you no longer have any information regarding your installation. Use this command with extreme caution.
The format of the command is:
EDTF STMF('/QIBM/UserData')Alternatively, we can delete the /QIBM/UserData/mqm directory and its subdirectories by repeated use of the RMVLNK and RMVDIR commands.
- Identify all the users who belong to the QMQMADM group. Use the DSPUSRPRF command to display a list of them. We must remove the QMQMADM group profile from their user profiles before we can delete the QMQMADM user profile. The format of the command is:
DSPUSRPRF USRPRF(QMQMADM) TYPE(*GRPMBR)- We must alter the ownership or delete the objects. For each of the user profiles QMQM and QMQMADM, use the WRKOBJOWN command to list all the objects owned by the profile. The format of the command is:
WRKOBJOWN USRPRF( PROFILE )- Delete the two user profiles. The format of the command is:
DLTUSRPRF USRPRF(QMQM) OWNOBJOPT(*DLT) DLTUSRPRF USRPRF(QMQMADM) OWNOBJOPT(*DLT)Parent topic: Uninstalling IBM MQ for IBM i