Hitachi

Hitachi Application Server V10 User's Guide (For Windows® Systems)


4.5.4 Deleting domains

To delete a domain, first execute the stop-domain subcommand of the asadmin utility command to stop the domain, and then execute the delete-domain subcommand.

Prerequisites

Intended users

Procedure

  1. To stop the domain, run the stop-domain subcommand of the asadmin utility command.

    asadmin stop-domain domain_name

    When this command is run, the result is displayed as follows:

    Command stop-domain executed successfully.
  2. To display the list of domains, run the list-domains subcommand of the asadmin utility command.

    asadmin list-domains

    Ensure that the status of the domain that was stopped in step 1 is not running. When this command is run, the result is displayed as follows:

    Name: domain1 Status: running
    Name: domain_name Status: not running
    Command list-domains executed successfully.
  3. To delete the domain, run the delete-domain subcommand of the asadmin utility command.

    asadmin delete-domain domain_name
    Important note

    If another process (such as Windows Explorer) is using a file or directory below the domain directory of the domain to be deleted, deletion of the domain might fail. Before deleting the domain, confirm that other running programs are not using any files or directories below the domain directory.

    When this command is run, the result is displayed as follows:

    Command delete-domain executed successfully.