public virtual async Task DeleteIndexAsync()

in Elastic.SemanticKernel.Connectors.Elasticsearch/MockableElasticsearchClient.cs [162:180]


    public virtual async Task DeleteIndexAsync(
        IndexName indexName,
        CancellationToken cancellationToken = default)
    {
        Verify.NotNull(indexName);

        var response = await ElasticsearchClient.Indices.DeleteAsync(
                new DeleteIndexRequest(indexName)
                {
                    RequestConfiguration = CustomUserAgentRequestConfiguration
                },
                cancellationToken)
            .ConfigureAwait(false);

        if (!response.IsSuccess())
        {
            throw new TransportException(PipelineFailure.Unexpected, "Failed to execute request.", response);
        }
    }