Use the delete-virtual-server subcommand in remote mode to delete an existing virtual server.
Ensure that the server is running.
Remote subcommands require a running server.
List virtual servers by using the list-virtual-servers(1) subcommand.
If necessary, notify users that the virtual server is being deleted.
Delete a virtual server by using the delete-virtual-server(1) subcommand.
To apply your changes, restart GlassFish Server.
See To Restart a Domain.
This example deletes the virtual server named sampleServer from localhost.
asadmin> delete-virtual-server sampleServer Command delete-virtual-server executed successfully.
You can also view the full syntax and options of the subcommand by typing asadmin help delete-virutal-server at the command line.