Only the root user or the operating system user who is authorized to administer the domain can run this command.
A domain must be stopped before it can be deleted.
Obtain the exact name of the domain that you are deleting.
To list the existing domains:
asadmin list-domains |
If necessary, notify domain users that the domain is being deleted.
Ensure that the domain you want to delete is stopped.
For instructions, see To Stop a Domain (or Server).
Delete the domain by using the delete-domain(1) command.
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. |
To see the full syntax and options of the command, type asadmin delete-domain --help at the command line.