(iSeries)
removeOs400WebServerDefinition command
The removeOs400WebServerDefinition command deletes a web server definition from the configuration repository of a Standalone or Deployment Manager profile.
To run this command, your user profile must have *ALLOBJ authority. For more information about running this command, see the Use command line tools article.
Syntax
The command syntax is as follows:
removeOs400WebServerDefinition -webserver.name webserverName -webserver.node webserverNode [-profileName profile1] [-removeNode] [-help | -?]
Parameters
The following options are available for the removeOs400WebServerDefinition command:
- -webserver.name
- This is a required parameter. The value webserverName specifies the web server definition name we want to delete.
- -profileName
- Optional. The value profile1 specifies the profile whose web server definition is to be deleted. The default is default.
- -webserver.node
- This is a required parameter. The value webserverNode specifies the node under which the web server is defined.
- -removeNode
- Optional. Indicates to remove the web server node. If we do not specify the -removeNode parameter, the web server node is not removed.
Usage scenario
The following example deletes the web server definition, WEBSERVER1, under the unmanaged node, YHOST-node, and removes the node. It also updates the deployment data for any application that was mapped to the web server definition.
removeOs400WebServerDefinition -profileName profile1 -webserver.name WEBSERVER1 -webserver.node MYHOST-node -removeNode
Use command-line tools