Uninstalling the HCL Workload Automation Agent using the twsinst script

Perform the following steps to uninstall the HCL Workload Automation Agent by using the twsinst script. Depending on the operating system, proceed as follows:
  • Windows operating systems:
    1. Ensure that all HCL Workload Automation processes and services are stopped, and that there are no active or pending jobs.
    2. Log on as administrator on the workstation where you want to uninstall the product.
    3. twsinst for Windows operating systems is a Visual Basic Script (VBS) that you can run in CScript and WScript mode, from the installation_dir\TWS directory, run the twsinst script as follows:
      cscript twsinst -uninst -uname user_name [-wait minutes]
      [-domain domain_name] [-lang lang_id]
      [-work_dir working_dir]    
    The uninstallation is performed in the language of the locale and not the language set during the installation phase. If you want to uninstall agents in a language other than the locale of the computer, run the twsinst script from the /installation_dir/TWS (for example, /home/user1/TWS) as follows:
    cscript twsinst -uninst -uname user_name -lang language
    where language is the language set during the uninstallation.
  • UNIX and Linux operating systems:
    1. Ensure that all processes and services are stopped, and that there are no active or pending jobs. For information about stopping the processes and services, see Administration Guide.
    2. Log on as root and change your directory to /installation_dir/TWS (for example: /home/user1/TWS where user1 is the name of HCL Workload Automation user.)
    3. From the TWS directory, run the twsinst script as follows:
      twsinst -uninst -uname user_name [-wait minutes]
      [-lang lang_id] [-work_dir working_dir]       
    The uninstallation is performed in the language of the locale and not the language set during the installation phase. If you want to uninstall agents in a language other than the locale of the computer, run the twsinst script from the /installation_dir/TWS (for example, /home/user1/TWS) as follows:
    ./twsinst -uninst -uname user_name -lang language
    where language is the language set during the uninstallation.
-uninst
Uninstalls the agent
-uname user_name
The name of the user for which the agent is uninstalled. This user name is not to be confused with the user performing the installation logged on as root on UNIX and Linux, and as administrator on Windows operating systems.
-wait minutes
The number of minutes that the product waits for jobs that are running to complete before starting the uninstallation. If the jobs do not complete during this interval the uninstallation stops and an error message is displayed. Valid values are integers or -1 for the product to wait indefinitely. The default is 60 minutes.
-domain domain_name
Windows operating systems only. The domain name of the HCL Workload Automation user. The default is the name of the workstation on which you are uninstalling the product.
-lang lang_id
The language in which the twsinst messages are displayed. If not specified, the system LANG is used. If the related catalog is missing, the default C language catalog is used.
Note: The -lang option is not to be confused with the HCL Workload Automation supported language packs.
-work_dir working_dir
The temporary directory used for the installation process files deployment.
On Windows operating systems:
If you specify a path that contains blanks, enclose it in double quotation marks. If you do not manually specify a path, the path is set to %temp%\TWA\tws93, where %temp% is the temporary directory of the operating system.
On UNIX and Linux operating systems:
The path cannot contain blanks. If you do not manually specify a path, the path is set to /tmp/TWA/tws93.
The following is an example of a twsinst script that uninstalls the HCL Workload Automation agent, originally installed for user named TWS_user:
On Windows operating systems:
twsinst -uninst -uname TWS_user
On UNIX and Linux operating systems:
./twsinst -uninst -uname TWS_user