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

    KubernetesApiResponse<V1PersistentVolume> response = pvClient.delete(name, deleteOptions);

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

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