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

    KubernetesApiResponse<V1PersistentVolumeClaim> response = pvcClient.delete(namespace, name, deleteOptions);

    if (!response.isSuccess()) {
      getLogger().warning(
              "Failed to delete persistent volume claim '" + name + "' 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 "
                      + "persistent volume claim in background!");
    }

    return true;
  }
/**
   * Delete a Kubernetes Persistent Volume Claim.
   *
   * @param name name of the Persistent Volume Claim
   * @param namespace name of the namespace
   * @return true if successful
   */
Delete a Kubernetes Persistent Volume Claim.
@param name name of the Persistent Volume Claim
@param namespace name of the namespace
@return true if successful
Delete a Kubernetes Persistent Volume Claim . @param name name of the Persistent Volume Claim @param namespace name of the namespace @return true if successful
public static boolean deletePvc(String name, String namespace) {
    KubernetesApiResponse<V1PersistentVolumeClaim> response = pvcClient.delete(namespace, name, deleteOptions);
    if (!response.isSuccess()) {
      getLogger().warning(
              "Failed to delete persistent volume claim '" + name + "' 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 "
                      + "persistent volume claim in background!");
    }
    return true;
  }
public static boolean deletePvc ( String name , String namespace ) { KubernetesApiResponse < V1PersistentVolumeClaim > response = pvcClient . delete ( namespace , name , deleteOptions ) ; if ( ! response . isSuccess ( ) ) { getLogger ( ) . warning ( "Failed to delete persistent volume claim '" + name + "' 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 " + "persistent volume claim in background!" ) ; } return true ; }
Delete a Kubernetes Persistent Volume Claim.
Delete a Kubernetes Persistent Volume Claim .