Use the delete-domain subcommand to delete an existing domain from a server. Only the root user or the operating system user who is authorized to administer the domain can run this subcommand.
A domain must be stopped before it can be deleted.
List domains by using the list-domains(1) subcommand.
If necessary, notify domain users that the domain is being deleted.
Ensure that the domain you want to delete is stopped.
If needed, see To Stop a Domain.
Delete the domain by using the delete-domain(1) subcommand.
This example deletes a domain named domain1 from the location specified.
asadmin> delete-domain --domaindir ..\domains domain1 Domain domain1 deleted. Command delete-domain executed successfully. |
You can also view the full syntax and options of the subcommand by typing asadmin help delete-domain at the command line.