Navigation
This version will reach end of life on Feb 2018. To upgrade, go to the Learn more about upgrading your version of MongoDB.

db.collection.dropIndexes()

db.collection.dropIndexes()

Drops all indexes other than the required index on the _id field. Only call dropIndexes() as a method on a collection object.