3.3.3.2 Removing and deleting profiles

You can remove a WebSphere Application Server profile from the cell by removing its profile from the WebSphere Deployment Manager. You can execute this task by using either a pair of script files or the Deployment Manager Administrative Console.

Note: Removing a profile from the cell only removes the server from the cluster; it does not delete the profile. The profile remains (and can be added back to the cell later, if needed). To completely remove a profile, delete the profile as a separate task.

You can delete profiles that you no longer need on your Deployment Manager and servers.

To remove a WebSphere Application Server using script files:

  1. If the Deployment Manager is not running, navigate to the bin directory of the Deployment Manager Profile and run the appropriate script:

    • (Windows) startManager.bat

    • (Linux, UNIX) ./startManager.sh

  2. On each WebSphere Application Server that you want to remove, navigate to the bin directory of the profile that is running the node agent and run the appropriate removeNode script:

    • (Windows) removeNode.bat

    • (Linux, UNIX) ./removeNode.sh

  3. Navigate to the bin directory of the Deployment Manager profile and run the appropriate cleanup script:

    • (Windows) cleanupNode.bat <node name> [deploymgr host] [deploymgr port] [options]

    • (Linux, UNIX) ./cleanupNode.sh <node name> [deploymgr host] [deploymgr port] [options]

    For more information, refer to this articlein the WebSphere Application Server documentation.

To remove a WebSphere Application Server using the Deployment Manager:

  1. Verify that the Deployment Manager is running.

  2. In a web browser, type the URL to the Deployment Manager; for example, type http://<servername>:<port>/ibm/console

    Note: By default, the Deployment Manager Administrative Console web application listens on port 9060.
  3. In the left pane, select System Administration and click Nodes.

  4. Select the node to remove and click Remove Node.

  5. To verify that the node is removed, navigate to System Administration > Nodes and confirm that the node is not listed.

To delete a profile:

  1. Open a command prompt and navigate to the [appserver root]/bin directory.

  2. Run the following command from the console:

    • (Windows) manageprofiles.bat -delete -profileName [profileName]

    • (UNIX/Linux) ./manageprofiles.sh -delete -profileName [profileName]

    Note: The profile directory and log files are not deleted. You must manually delete the profile directory. Any attempt to create a profile by using the same name as the deleted profile without first deleting the directory causes an error.

// Ethnio survey code removed