Use this task to delete a configuration object from the configuration repository. This action only affects the configuration. Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
Using Jacl:
set s1 [$AdminConfig getid /Node:mynode/Server:myserver/]
Using Jython:
s1 = AdminConfig.getid('/Node:mynode/Server:myserver/')where:
set | is a Jacl command |
s1 | is a variable name |
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object that represents the WebSphere Application Server configuration |
getid | is an AdminConfig command |
Node | is an object type |
mynode | is the host name of the node from which the server is removed |
Server | is an object type |
myserver | is the name of the server to remove |
Using Jacl:
$AdminConfig remove $s1
AdminConfig.remove(s1)
where:
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object that represents the WebSphere Application Server configuration |
remove | is an AdminConfig command |
s1 | evaluates the ID of the server that is specified in step number 2 |