- Reference >
mongoShell Methods >- Collection Methods >
- db.collection.dropIndexes()
db.collection.dropIndexes()¶
-
db.collection.dropIndexes()¶ Drops all indexes other than the required index on the
_idfield. Only calldropIndexes()as a method on a collection object.