Command
db.users.dropIndex('name_1')
Explanation
Drops an index from a collection. Useful for removing unnecessary indexes or optimizing performance.
Examples
Remove index on item field
db.orders.dropIndex('item_1')
db.users.dropIndex('name_1')
Drops an index from a collection. Useful for removing unnecessary indexes or optimizing performance.
Remove index on item field
db.orders.dropIndex('item_1')