code: public void delete(String resourceGroupName, String managedClusterName, String agentPoolName) {
          deleteWithServiceResponseAsync(resourceGroupName, managedClusterName, agentPoolName).toBlocking().last().body();
      }
docs: Deletes an agent pool.
  Deletes the agent pool in the specified managed cluster.
  
  @param resourceGroupName The name of the resource group.
  @param managedClusterName The name of the managed cluster resource.
  @param agentPoolName The name of the agent pool.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent