in Elastic.SemanticKernel.Connectors.Elasticsearch/MockableElasticsearchClient.cs [256:277]
public virtual async Task DeleteDocumentAsync(
IndexName indexName,
Id id,
CancellationToken cancellationToken = default)
{
Verify.NotNull(indexName);
Verify.NotNull(id);
var response = await ElasticsearchClient
.DeleteAsync(
new DeleteRequest(indexName, id)
{
RequestConfiguration = CustomUserAgentRequestConfiguration
},
cancellationToken)
.ConfigureAwait(false);
if (!response.IsSuccess())
{
throw new TransportException(PipelineFailure.Unexpected, "Failed to execute request.", response);
}
}