WebSphere Application Server - Express, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Deleting a profile

This topic describes how to manually delete a profile.

Before you begin

Before using the manual procedure to remove a profile, try the wasprofile command with the -delete option. For example, issue one of the following commands:

[Linux][UNIX]
./wasprofile.sh -delete 
                -profileName profile_name | -profilePath profile_path
[Windows]
wasprofile.bat -delete 
               -profileName profile_name | -profilePath profile_path

See wasprofile command.

If the command does not work, use this procedure to delete the profile.

Why and when to perform this task

This procedure describes how to manually delete a profile when the wasprofile -delete command results in the following message:
INSTCONFFAILED: Cannot delete profile

Steps for this task

  1. Delete the profiles_install_root/profile_name directory.
  2. If the install_root/properties/profileRegistry.xml file exists, edit the file in a flat-file editor to delete the entry for the profile, if the entry is present.
    The entry resembles the following example:
    <profile isDefault="true" 
             name="BadProfile" 
             path="E:\IBM\WebSphere\AppServer\profiles\BadProfile" 
             template="E:\IBM\WebSphere\AppServer\profileTemplates\default"/>
  3. [Linux][UNIX]Compare the two batch files, install_root/ properties/ fsdb/ _was_profile_default/ default.sh and install_root/ properties/ fsdb/ bad_profile_name.sh.

    If the files are identical, delete the install_root/ properties/ fsdb/ _was_profile_default directory and the install_root/ properties/ fsdb/ bad_profile_name.sh file.

    If the files are not identical, delete only the install_root/ properties/ fsdb/ bad_profile_name.sh file.

  4. [Windows]Compare the two batch files, install_root\ properties\ fsdb\ _was_profile_default\ default.bat and install_root\ properties\ fsdb\ bad_profile_name.bat.

    If the files are identical, delete the install_root\ properties\ fsdb\ _was_profile_default directory and the install_root\ properties\ fsdb\ bad_profile_name.bat file.

    If the files are not identical, delete only the install_root\ properties\ fsdb\ bad_profile_name.bat file.

What to do next

See the description of the wasprofile command to learn more about the command-line method of working with profiles.

See Using the Profile creation wizard for more information about creating profiles with the Profile creation wizard.




Related tasks
Using the Profile creation wizard

Related reference
wasprofile command

Task topic    

Terms of Use | Feedback

Last updated: Jun 8, 2005 12:45:23 PM EDT
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/tins_removeprofile.html

© Copyright IBM Corporation 2004, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)