Skip to content

[FEATURE] Elastic 8 Client - Delete Many By Ids #8484

Closed as not planned
Closed as not planned
@DR9885

Description

@DR9885

Is your feature request related to a problem? Please describe.
Currently no easy way to delete a list of Ids.

Describe the solution you'd like

        var res = await _client.BulkAsync(
            b =>
                b.Index(_dbName)
                    .DeleteMany(ids), ct).ConfigureAwait(false);

Describe alternatives you've considered
Current work around but this does not seem ideal.

        var res = await _client.BulkAsync(
            b =>
            {
                b.Index(_dbName);
                foreach (var id in ids)
                    b.Delete<TE>(x => x.Id(id));
        
            }, ct).ConfigureAwait(false);

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions