deleteWSGWInstance command
Use the deleteWSGWInstance command to delete a gateway instance.
You can delete a gateway instance by using the wsadmin tool as described in this topic, or by using the administrative console as described in Deleting gateway instances.
To run the command, use the AdminTask object of the wsadmin scripting client.
The wsadmin scripting client is run from Qshell.
For more information, see Configuring Qshell to run WebSphere scripts using wsadmin scripting.
Command-line help is provided for service integration bus commands:
- For a list of the available gateway commands, plus a brief description of each
command, enter the following command at the wsadmin prompt:
print AdminTask.help('WSGateway')
- For overview help on a given command, enter the following command at the wsadmin
prompt:
print AdminTask.help('command_name')
After using the command, save your changes to the master configuration by using the
following command:
AdminConfig.save()
Purpose
This command deletes a gateway instance.
Target Object
ObjectName of the WSGWInstance object
The command deletes
the following objects:
- The gateway instance.
- All gateway and proxy services deployed to the gateway instance.
- All target services deployed to any of the gateway services.
- All outbound services created when creating any of the gateway services by using the administrative console "Create a new gateway service" wizard.
Note: The WebSphere® Application Server
Version 5.1 gateway used filters for tasks such as logging
messages, transforming their contents or terminating an incoming request. When a Version 5.1 gateway that contained filters was migrated to Version 6, "StorageQueue" destinations were created to support
existing Version 5.1 gateway filters in the Version 6 environment. These destinations are not used in Version 7.0 or later, but they are not removed automatically when you delete
the associated gateway. For information about finding and removing these destinations manually, see
the corresponding troubleshooting
tip.
Parameters
None.
Example
- Using Jython:
AdminTask.deleteWSGWInstance(wsgw)
- Using Jacl:
$AdminTask deleteWSGWInstance $wsgw