Sun GlassFish Enterprise Server v3 Prelude Administration Guide

ProcedureTo Delete a Domain

Only the root user or the operating system user who is authorized to administer the domain can run this command.

Before You Begin

A domain must be stopped before it can be deleted.

  1. Obtain the exact name of the domain that you are deleting.

    To list the existing domains:


    asadmin list-domains
    
  2. If necessary, notify domain users that the domain is being deleted.

  3. Ensure that the domain you want to delete is stopped.

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

  4. Delete the domain by using the delete-domain(1) command.


Example 2–3 Deleting a Domain

The following example command deletes a domain named domain1 from the location specified:


asadmin delete-domain --domaindir ..\domains domain1

Information similar to the following is displayed:


Domain domain1 deleted.
Command delete-domain executed successfully.

See Also

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