You can delete WebSphere® MQ entirely, including all user data.
If you do this, save your user data first. It will not be recoverable.
To
perform this deletion:
Quiesce WebSphere MQ for iSeries™. (See Quiescing MQ.)
End the WebSphere MQ subsystem, by issuing the command:
ENDSBS SBS(QMQM)
Delete all queue managers by using the command WRKMQM and selecting
option 4.
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 will
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,
you can delete the /QIBM/UserData/mqm directory and its subdirectories by
repeated use of the RMVLNK and RMVDIR commands.
Ensure that no locks are held on the library QMQM, by issuing the
command:
WRKOBJLCK OBJ(QMQM) OBJTYPE(*LIB)
Optionally: At this point, if you want to also uninstall
the MQ Java client, you could do it now, using the command:
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:
Identify
all the users who belong to the QMQMADM group. Use the DSPUSRPRF command to
display a list of them. You need to remove the QMQMADM group profile from
their user profiles before you can delete the QMQMADM user profile. The format
of the command is:
DSPUSRPRF USRPRF(QMQMADM) TYPE(*GRPMBR)
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)
You
need to alter the ownership or delete the objects. Then you must delete the
two user profiles.