def delete(resource_group_name, managed_cluster_name, agent_pool_name, custom_headers:nil)
      response = delete_async(resource_group_name, managed_cluster_name, agent_pool_name, custom_headers:custom_headers).value!
      nil
    end
def delete(resource_group_name, managed_cluster_name, agent_pool_name, custom_headers:nil)
      response = delete_async(resource_group_name, managed_cluster_name, agent_pool_name, custom_headers:custom_headers).value!
      nil
    end
Deletes an agent pool.

 Deletes the agent pool in the specified managed cluster.

 @param resource_group_name [String] The name of the resource group.
 @param managed_cluster_name [String] The name of the managed cluster
 resource.
 @param agent_pool_name [String] The name of the agent pool.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.