Delete a Domain
To remove the “testDomain” domain we just created, do the following steps:
- Stop the processes associated with the domain.
- Remove the relevant domain entry from the “$MW_HOME/domain-registry.xml” file.
<?xml version="1.0" encoding="UTF-8"?> <domain-registry xmlns="http://xmlns.oracle.com/weblogic/domain-registry"> <domain location="/u01/app/oracle/middleware/user_projects/domains/testDomain"/> </domain-registry>
- Remove the relevant domain entry from the “$WLS_HOME/common/nodemanager/nodemanager.domains” file.
#Domains and directories created by Configuration Wizard #Thu Aug 23 22:53:14 BST 2012 testDomain=/u01/app/oracle/middleware/user_projects/domains/testDomain
- Delete the “testDomain” application and domain directories.
$ rm -Rf $MW_HOME/user_projects/applications/testDomain $ rm -Rf $MW_HOME/user_projects/domains/testDomain