Deleting profiles using the manageprofiles command

You can delete a WebSphere® Application Server profile from the command line using the manageprofiles command.

Before you begin

For more information about the manageprofiles command, see manageprofiles command reference.

Procedure

  1. Open a command prompt and run one of the following commands, depending on your operating system; the command file is located in the install_root/bin directory:
    • For Linux operating systemFor Unix operating systemmanageprofiles.sh -delete -profileName profile_name
    • For Windows operating systemmanageprofiles.bat -delete -profileName profile_name
    where profile_name is the name of the profile that you want to delete.
    Note:
    • If you run the delete operation on a managed node, and either the node process or the server process is running, the operation fails with the following error:
      Action can not be executed while server is running
      You must ensure that both the node and the server are stopped before running the delete operation again. (Follow the related link for information on how to stop server and node.)
  2. Confirm that the profile deletion has completed by checking the following log file:
    • For Linux operating systemFor Unix operating systeminstall_root/logs/manageprofiles/profile_name_delete.log
    • For Windows operating systeminstall_root\logs\manageprofiles\profile_name_delete.log
  3. You must drop the database manually. The SQL to drop the database is available in the dbscripts directory for supported platforms.