protected void removeDeployableFromDomain(Deployable deployable,Element domain){
  List<Element> results=selectAppDeployments(deployable,domain);
  for (  Element element : results) {
    domain.removeChild(element);
  }
}

protected void removeDeployableFromDomain ( Deployable deployable , Element domain ) { List < Element > results = selectAppDeployments ( deployable , domain ) ; for ( Element element : results ) { domain . removeChild ( element ) ; } }
remove the corresponding app - deployment element from the domain of the weblogic server .
