collection.dropIndexes

Mongo documentation

Drops all indexes from this collection.

Arguments

  1. [callback] (function)

Returns

A promise

Example

users.dropIndexes()

results matching ""

    No results matching ""