Drops indexes from this collection.
-
fields
(String|Object|Array): Defines the index (or indexes) to drop. -
[
options
] (object) -
[
callback
] (function)
A promise
users.dropIndex('name.first')
users.dropIndex('name last')
users.dropIndex(['nombre', 'apellido'])
users.dropIndex({ up: 1, down: -1 })