2.6.12 delete-webserver
The delete-webserver subcommand deletes a web server.
Synopsis
asadmin [asadmin_options] delete-webserver [--force={false|true}] webserver_name
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The delete-webserver subcommand deletes the specified web server from the domain. If the web server has a dependency relation with another server (the web server is the dependent source server), that relation is also deleted.
This subcommand is supported only in the remote mode.
Execution permission
General user
Precondition
The web server has been created.
The web server has been stopped.
Arguments
- --force={false|true}
-
Specifies whether to forcibly delete the web server.
Type: Boolean
You can specify the following values:
-
true
Forces deletion of the web server. If the web server on the node is not stopped or if the deletion failed, the web server information is deleted from the domain.
-
false
Does not force deletion of the web server. If the deletion of the web server on the node failed, the subcommand terminates with an error without deleting the web server information from the domain.
Default value: false
-
- webserver_name
-
Specifies the name of the web server to be deleted.
Type: String
You can specify the following values:
-
Name of a web server that exists in the domain
Default value: (None. You must specify a value.)
-
Examples
The following example deletes the web server named Web1:
asadmin delete-webserver Web1
The following example forcibly deletes the web server named Web1:
asadmin delete-webserver --force true Web1
Exit Status
Exit Status |
Explanation |
---|---|
0 |
Normal termination. |
1 |
Abnormal termination. |