Delete a profile

 

+

Search Tips   |   Advanced Search

 

 

Before you begin

This topic describes how to manually delete a profile.

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:

wasprofile.sh -delete -profileName profile -profilePath profile_path

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

 

Overview

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

INSTCONFFAILED: Cannot delete profile

 

Procedure

  1. Delete the profiles_install_root/profile 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. Compare the two batch files, install_root/ properties/ fsdb/ _was_profile_default/ default.sh and install_root/ properties/ fsdb/ bad_profile.sh.

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

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

  4. Compare the two batch files, install_root\ properties\ fsdb\ _was_profile_default\ default.bat and install_root\ properties\ fsdb\ bad_profile.bat.

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

    If the files are not identical, delete only the install_root\ properties\ fsdb\ bad_profile.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 Information


wasprofile command