// DropOne drops the index with the given name from the collection.
DropOne drops the index with the given name from the collection.
// DropOne drops the index with the given name from the collection .
func (iv IndexView) DropOne(ctx context.Context, name string, opts ...*options.DropIndexesOptions) (bson.Raw, error) {
	if name == "*" {
		return nil, ErrMultipleIndexDrop
	}
	return iv.drop(ctx, name, opts...)
}
func ( iv IndexView ) DropOne ( ctx context . Context , name string , opts ... * options . DropIndexesOptions ) ( bson . Raw , error ) { if name == " " { return nil , ErrMultipleIndexDrop } return iv . drop ( ctx , name , opts ... ) }
DropOne drops the index with the given name from the collection.
DropOne drops the index with the given name from the collection .