CSMongo.Commands.MongoDatabaseCommands.DeleteAllCollectionIndexes C# (CSharp) Method

DeleteAllCollectionIndexes() public static method

Removes all indexes from the provided collection
public static DeleteAllCollectionIndexes ( MongoDatabase database, string collection ) : DeleteCollectionIndexResult
database MongoDatabase
collection string
return CSMongo.Results.DeleteCollectionIndexResult
        public static DeleteCollectionIndexResult DeleteAllCollectionIndexes(MongoDatabase database, string collection)
        {
            return MongoDatabaseCommands.DeleteCollectionIndex(database, collection, "*");
        }