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 Using 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 you want to delete.
- -profileName
- This is an optional parameter. The value profile1 specifies the profile whose web server definition is to be deleted. The default value is default.
- -webserver.node
- This is a required parameter. The value webserverNode specifies the node under which the web server is defined.
- -removeNode
- This is an optional parameter. Indicates to remove the web server node. If you 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, MYHOST-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