On this page
reIndexcommand drops all indexes on a collection and recreates them. This operation may be expensive for collections that have a large amount of data and/or a large number of indexes.
Use the following syntax:
The command takes the following fields:
Field Description reIndex The name of the collection to reindex.
Index Build Operations on a Populated Collection for more information on the behavior of indexing operations in MongoDB.