Monday, January 23, 2012

How to delete a profile from a WebSphere 6.1 & 7.0 application server


Step 1.


Location of tool:

\AppServer\bin\manageprofiles.bat

syntax:

manageprofiles.bat -delete -profileName (case sensitive commands)

Note: This used to be wasprofile.bat in version 6.0.x and is depricated in 6.1.

The Windows service for the profile will have been set to disabled now.


Step 2.


Delete the folder e.g \ApplicationServer\profiles\


Step 3.


manageprofiles.bat -validateAndUpdateRegistry

This process validates the profile registry and lists the non-valid profiles that it purges.


Step 4.


Remove the Windows service that is set to run the profile.

WASService.exe -remove
service_name

e.g If the service name is "IBM Websphere Application Server V6.1 - Node"

Then the command will be:

WASService.exe -remove "Node"


You can also look at this document on WebSphere NT Services
-- For Linux box you will have .sh files
http://www.webspheretools.com/sites/webspheretools.nsf/docs/Using%20WASService.exe%20to%20help%20with%20configuring%20windows%20services%20for%20IBM%20WebSphere%20Application%20Server.