MongoCollection.dropIndexes

void dropIndexes(DropIndexOptions options = DropIndexOptions.init) @safe

Drops all indexes in the collection.

void dropIndexes(string[] names, DropIndexOptions options = DropIndexOptions.init) @safe

Unofficial API extension, more efficient multi-index removal on MongoDB 4.2+