new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Kubernetes.java
public static boolean deleteDomainCustomResource(String domainUid, String namespace) {

    KubernetesApiResponse<Domain> response = crdClient.delete(namespace, domainUid, deleteOptions);

    if (!response.isSuccess()) {
      getLogger().warning(
              "Failed to delete Domain Custom Resource '" + domainUid + "' from namespace: "
                      + namespace + " with HTTP status code: " + response.getHttpStatusCode());
      return false;
    }

    if (response.getObject() != null) {
      getLogger().info(
              "Received after-deletion status of the requested object, will be deleting "
                      + "domain custom resource in background!");
    }

    return true;
  }
/**
   * Delete the Domain Custom Resource.
   *
   * @param domainUid unique domain identifier
   * @param namespace name of namespace
   * @return true if successful, false otherwise
   */
Delete the Domain Custom Resource.
@param domainUid unique domain identifier
@param namespace name of namespace
@return true if successful, false otherwise
Delete the Domain Custom Resource . @param domainUid unique domain identifier @param namespace name of namespace @return true if successful false otherwise
public static boolean deleteDomainCustomResource(String domainUid, String namespace) {
    KubernetesApiResponse<Domain> response = crdClient.delete(namespace, domainUid, deleteOptions);
    if (!response.isSuccess()) {
      getLogger().warning(
              "Failed to delete Domain Custom Resource '" + domainUid + "' from namespace: "
                      + namespace + " with HTTP status code: " + response.getHttpStatusCode());
      return false;
    }
    if (response.getObject() != null) {
      getLogger().info(
              "Received after-deletion status of the requested object, will be deleting "
                      + "domain custom resource in background!");
    }
    return true;
  }
public static boolean deleteDomainCustomResource ( String domainUid , String namespace ) { KubernetesApiResponse < Domain > response = crdClient . delete ( namespace , domainUid , deleteOptions ) ; if ( ! response . isSuccess ( ) ) { getLogger ( ) . warning ( "Failed to delete Domain Custom Resource '" + domainUid + "' from namespace: " + namespace + " with HTTP status code: " + response . getHttpStatusCode ( ) ) ; return false ; } if ( response . getObject ( ) != null ) { getLogger ( ) . info ( "Received after-deletion status of the requested object, will be deleting " + "domain custom resource in background!" ) ; } return true ; }
Delete the Domain Custom Resource.
Delete the Domain Custom Resource .