Oracle GlassFish Server 3.0.1 Administration Guide

ProcedureTo Delete a Virtual Server

Use the delete-virtual-server subcommand in remote mode to delete an existing virtual server.

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. List virtual servers by using the list-virtual-servers(1) subcommand.

  3. If necessary, notify users that the virtual server is being deleted.

  4. Delete a virtual server by using the delete-virtual-server(1) subcommand.

  5. To apply your changes, restart GlassFish Server.

    See To Restart a Domain.


Example 16–18 Deleting a Virtual Server

This example deletes the virtual server named sampleServer from localhost.


asadmin> delete-virtual-server sampleServer
Command delete-virtual-server executed successfully.

See Also

You can also view the full syntax and options of the subcommand by typing asadmin help delete-virutal-server at the command line.