Deleting profiles
From ISSW
The process of deleting a WebSphere profile involves three stages:
- Unaugmenting the profile (for Enterprise Service Bus and Process Server)
- Deleting the profile registration
- Deleting the profile directory
For certain products such as Enterprise Service Bus and Process Server, the augmentation of a profile adds a layer of functionality, and must be removed before the profile can be cleanly removed from the cell configuration. The full list of augmentations applied to a profile is listed in the profileRegistry.xml file, for example:
In the example above, there are three augmentations applied to the profile; thus the unaugmentation process must be performed three times before the profile can be deleted:
cd /opt/IBM/WebSphere/ProcServer/bin; ./manageprofiles.sh -unaugment -profileName AppSrv01; ./manageprofiles.sh -unaugment -profileName AppSrv01; ./manageprofiles.sh -unaugment -profileName AppSrv01;
To delete a profile:
./manageprofiles.sh -delete -profileName AppSrv01; ./manageprofiles.sh -listProfiles; cd ../profiles/AppSrv01/bin; ./removeNode.sh dmgrhost 8879; rm -rf ../profiles/AppSrv01;
To delete ALL profiles on a node (useful for a belt and braces node clean up):
cd /opt/IBM/WebSphere/ProcServer/bin; ./manageprofiles.sh -deleteAll ; rm -rf ../profiles/AppSrv01; # Assuming only one profile
Note: The above commands assume global security is disabled (add -user and -password if not)
