Sun GlassFish Enterprise Server v3 Prelude Administration Guide

ProcedureTo Delete a Virtual Server

The remote delete-virtual-server command enables you to delete an existing virtual server.

  1. Ensure that the server is running.

    Remote commands require a running server.

  2. Obtain the exact name of the virtual server that you are deleting.

    To list the existing virtual servers:


    asadmin list-virtual-servers
    
  3. If necessary, notify users that the virtual server is being deleted.

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

  5. To apply your changes, restart Enterprise Server.

    1. Stop Enterprise Server.

      For instructions, see To Stop a Domain (or Server).

    2. Start Enterprise Server.

      For instructions, see To Start a Domain (or Server).


Example 8–8 Deleting a Virtual Server

The following example command deletes the virtual server named sampleServer from localhost:


asadmin delete-virtual-server sampleServer

Information similar to the following is displayed:


Command delete-virtual-server executed successfully.

See Also

To see the full syntax and options of the command, type asadmin delete-virutal-server --help at the command line.