Bootstrap FreeKB - IBM WebSphere - Delete profile using the manageprofiles delete command
IBM WebSphere - Delete profile using the manageprofiles delete command

Updated:   |  IBM WebSphere articles

If you are not sure what a profile is, refer to this article.

There are a number of options can be be used with the (Linux) or manageprofiles.bat (Windows) script.

Before deleting a profile, you will almost always want to use the (Linux) or manageprofiles.bat (Windows) command with the -listProfiles option to list the profiles on the system. In this example, there are two profiles, AppSrv01 and AppSrv02.

~]# ${WAS_INSTALL_ROOT}/bin/ -listProfiles
[AppSrv01, AppSrv02]


If the profile contains a node server, the stopNode command would be used to stop the node before the profile is backed up.



Or if the profile contains a deployment manager, the stopManager command would be used to stop the deployment manager before the profile is backed up.



You should always back up the profile before you delete the profile.

${WAS_INSTALL_ROOT}/bin/ -backupProfile -profileName profile001 -backupFile /path/to/backup.xml


Then use the following command to delete the profile.

${WAS_INSTALL_ROOT}/bin/ -delete -profileName profile_name


The following will be displayed if the profile is successfully deleted.

INSTCONFSUCCESS: Success: The profile no longer exists.


Validate and update the registry.

${WAS_INSTALL_ROOT}/bin/ -validateAndUpdateRegistry


After the profile has been deleted, you may want to delete the remaining profile files.


You always want to use to delete a profile before removing the profile directory. You do not want to remove the profile directory from the server without first deleting the profile, as this will cause an incomplete removal situation. For example, if you remove the profile directory, -listProfiles will still believe that the profile exists.

rm -rf ${WAS_INSTALL_ROOT}/profiles/your_profile_name


Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee


Add a Comment

Please enter 3c12e1 in the box below so that we can be sure you are a human.