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
-
Installation of Application Server is complete.
-
The created domain administration server (DAS) is running.
Intended users
-
System engineers
Procedure
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.
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.
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.