public final Operation deleteNodePool(
      String projectId, String zone, String clusterId, String nodePoolId) {

    DeleteNodePoolRequest request =
        DeleteNodePoolRequest.newBuilder()
            .setProjectId(projectId)
            .setZone(zone)
            .setClusterId(clusterId)
            .setNodePoolId(nodePoolId)
            .build();
    return deleteNodePool(request);
  }
public final Operation deleteNodePool ( String projectId , String zone , String clusterId , String nodePoolId ) { DeleteNodePoolRequest request = DeleteNodePoolRequest . newBuilder ( ) . setProjectId ( projectId ) . setZone ( zone ) . setClusterId ( clusterId ) . setNodePoolId ( nodePoolId ) . build ( ) ; return deleteNodePool ( request ) ; }
Deletes a node pool from a cluster.

<p>Sample code:

<pre><code>
try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
String projectId = "";
String zone = "";
String clusterId = "";
String nodePoolId = "";
Operation response = clusterManagerClient.deleteNodePool(projectId, zone, clusterId, nodePoolId);
}
</code></pre>

@param projectId Deprecated. The Google Developers Console [project ID or project
number](https://developers.google.com/console/help/new/#projectnumber). This field has been
deprecated and replaced by the name field.
@param zone Deprecated. The name of the Google Compute Engine
[zone](/compute/docs/zones#available) in which the cluster resides. This field has been
deprecated and replaced by the name field.
@param clusterId Deprecated. The name of the cluster. This field has been deprecated and
replaced by the name field.
@param nodePoolId Deprecated. The name of the node pool to delete. This field has been
deprecated and replaced by the name field.
@throws com.google.api.gax.rpc.ApiException if the remote call fails