Table of Contents

Method DropOneAsync

Namespace
MongoDB.Driver.Search
Assembly
MongoDB.Driver.dll

DropOneAsync(string, CancellationToken)

Drops an index by its name.

Task DropOneAsync(string name, CancellationToken cancellationToken = default)

Parameters

name string

The index name.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

A Task.