+

Search Tips   |   Advanced Search

Delete a profile


We can delete a profile using manageprofiles command. If the command fails, we can delete the profile using operating system commands.

If a node within a profile is federated to a dmgr, before you delete the profile, stop the node and remove the node from the dmgr. Otherwise, an orphan node is left in the deployment manager.

If we delete a profile that has augmenting templates registered to it in the profile registry, unaugment actions are attempted prior to the deletion.

We cannot delete a profile using the Profile Management Tool.

The following example attempts to delete a profile using the manageprofiles command, and then using operating system commands.

 

  1. Issue the manageprofiles command to delete a profile.

    Substitute the profile name for the profile_name value in the following commands.
    [Linux] [HP-UX] [Solaris]

    [AIX]

    ./manageprofiles.sh -delete 
                    -profileName profile_name
    
    

    (Windows)

    manageprofiles.bat -delete 
                   -profileName profile_name
    

    If the command is successful, we have completed the task and can skip the remaining steps. If the command is partially successful or unsuccessful, proceed to the next step to delete the profile manually. If we receive the INSTCONFFAILED: Cannot delete profile. message, the command was unsuccessful. If the deletion is partially successful, you could receive message information similar to the following wording:

    INSTCONFPARTIALSUCCESS: The profiles no longer exist, but errors occurred. 
    
    

    See, consult APP_ROOT/logs/manageprofiles/deleteAll.log.

    or

    The current user does not have sufficient permissions to detect or  remove services. If a service does exist, then an admin or root user has  to remove it. If a service does not exist, then no further action is  required.
    

  2. Issue operating system commands to delete the profile directory.

  3. Issue the following command to remove references in the registry to deleted profiles: [Linux] [HP-UX] [Solaris]

    [AIX]

    ./manageprofiles.sh -validateAndUpdateRegistry 
    
    

    (Windows)

    manageprofiles.bat -validateAndUpdateRegistry
    
    Editing of the registry is not recommended.

 

Results

we have now deleted a profile.

 

Next steps

We can delete other profiles using this procedure, or create other profiles using manageprofiles command or the Profile Management Tool.