2.4.5 delete-domain
Deletes a domain.
Synopsis
asadmin [asadmin-options] delete-domain [--help] [--domaindir domaindir] domain-name
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The delete-domain subcommand deletes the specified domain. The domain must already exist and must be stopped.
This subcommand is supported in local mode only.
Arguments
- --help | -?
-
Displays the help text for the subcommand.
- --domaindir domaindir
-
Specifies the directory where the domain to be deleted is located.
Type: String
The following values can be specified:
-
Name of the directory where the domain is located
Default value: Application Server installation directory/javaee/glassfish/domains
-
- domain-name
-
Specifies the unique name of the domain.
Type: String
The following values can be specified:
-
Name of the domain
Default value: N/A
-
Examples
The following example deletes a domain named mydomain4 from the default domains directory.
asadmin delete-domain mydomain4
Exit Status
Exit Status |
Explanation |
---|---|
0 |
command executed successfully. |
1 |
error in executing the command. |