/// <summary> /// <c>DELETE</c> request to the <c>enrich.delete_policy</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html">https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html</a> /// </summary> public Task <DeleteEnrichPolicyResponse> DeletePolicyAsync(IDeleteEnrichPolicyRequest request, CancellationToken ct = default) => DoRequestAsync <IDeleteEnrichPolicyRequest, DeleteEnrichPolicyResponse>(request, request.RequestParameters, ct);
/// <summary> /// <c>DELETE</c> request to the <c>enrich.delete_policy</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html">https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html</a> /// </summary> public DeleteEnrichPolicyResponse DeletePolicy(IDeleteEnrichPolicyRequest request) => DoRequest <IDeleteEnrichPolicyRequest, DeleteEnrichPolicyResponse>(request, request.RequestParameters);